pub struct Counter { /* private fields */ }
Expand description
A wrapper type to gracefully parse the reserved u12
and u4
counter of the EventgroupEntry
.
Implementations§
Trait Implementations§
Source§impl<'a> Parse<'a> for Counter
impl<'a> Parse<'a> for Counter
Source§fn parse_partial(reader: &mut ByteReader<'a>) -> Result<Counter, ParseError>
fn parse_partial(reader: &mut ByteReader<'a>) -> Result<Counter, ParseError>
Parses a SOME/IP payload type from a given slice of bytes. Read more
Source§impl Serialize for Counter
impl Serialize for Counter
Source§fn required_length(&self) -> usize
fn required_length(&self) -> usize
Returns the number of bytes required to store the serialized version of self.
Source§fn serialize_partial(
&self,
writer: &mut ByteWriter<'_>,
) -> Result<(), SerializeError>
fn serialize_partial( &self, writer: &mut ByteWriter<'_>, ) -> Result<(), SerializeError>
Serializes to a byte writer.
impl Copy for Counter
impl Eq for Counter
impl StructuralPartialEq for Counter
Auto Trait Implementations§
impl Freeze for Counter
impl RefUnwindSafe for Counter
impl Send for Counter
impl Sync for Counter
impl Unpin for Counter
impl UnwindSafe for Counter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more