pub struct Ttl {
pub seconds: u32,
}
Expand description
Lifetime of the entry in seconds.
Fields§
§seconds: u32
Lifetime of the entry in seconds.
Represents a u24 in the payload.
Trait Implementations§
Source§impl Parse<'_> for Ttl
impl Parse<'_> for Ttl
Source§fn parse_partial(reader: &mut ByteReader<'_>) -> Result<Ttl, ParseError>
fn parse_partial(reader: &mut ByteReader<'_>) -> Result<Ttl, ParseError>
Parses a SOME/IP payload type from a given slice of bytes. Read more
Source§impl Serialize for Ttl
impl Serialize for Ttl
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,
byte_writer: &mut ByteWriter<'_>,
) -> Result<(), SerializeError>
fn serialize_partial( &self, byte_writer: &mut ByteWriter<'_>, ) -> Result<(), SerializeError>
Serializes to a byte writer.
impl Eq for Ttl
impl StructuralPartialEq for Ttl
Auto Trait Implementations§
impl Freeze for Ttl
impl RefUnwindSafe for Ttl
impl Send for Ttl
impl Sync for Ttl
impl Unpin for Ttl
impl UnwindSafe for Ttl
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