pub struct ServiceEntry {
pub first_option: u8,
pub second_option: u8,
pub option_counts: u8,
pub service_id: u16,
pub instance_id: u16,
pub major_version_ttl: u32,
pub minor_version: u32,
}
Expand description
Service entry.
Fields§
§first_option: u8
Index of option in Header::options
where first option run begins.
second_option: u8
Index of option in Header::options
where second option run begins.
option_counts: u8
Number of options in the first and second option runs. Split into two u4 (first and second option runs respectively).
service_id: u16
ID of the service this entry belongs to.
instance_id: u16
ID of the service instance this entry belongs to. When set to 0xffff, then this entry belongs to all service instances.
major_version_ttl: u32
Major version of the service and lifetime of this entry (in seconds). Split into 8 (major version) and 24 (TTL) bits.
minor_version: u32
Minor version of the service.
Trait Implementations§
Source§impl Clone for ServiceEntry
impl Clone for ServiceEntry
Source§fn clone(&self) -> ServiceEntry
fn clone(&self) -> ServiceEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ServiceEntry
impl Debug for ServiceEntry
Source§impl<'a> Parse<'a> for ServiceEntry
impl<'a> Parse<'a> for ServiceEntry
Source§fn parse_partial(
reader: &mut ByteReader<'a>,
) -> Result<ServiceEntry, ParseError>
fn parse_partial( reader: &mut ByteReader<'a>, ) -> Result<ServiceEntry, ParseError>
Parses a SOME/IP payload type from a given slice of bytes. Read more
Source§impl PartialEq for ServiceEntry
impl PartialEq for ServiceEntry
Source§impl Serialize for ServiceEntry
impl Serialize for ServiceEntry
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 Eq for ServiceEntry
impl StructuralPartialEq for ServiceEntry
Auto Trait Implementations§
impl Freeze for ServiceEntry
impl RefUnwindSafe for ServiceEntry
impl Send for ServiceEntry
impl Sync for ServiceEntry
impl Unpin for ServiceEntry
impl UnwindSafe for ServiceEntry
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