#[repr(u8)]pub enum EntryType {
FindService = 0,
OfferService = 1,
Subscribe = 6,
SubscribeAck = 7,
}Expand description
Entry type codes for SOME/IP-SD entries.
Each SOME/IP-SD entry starts with a type field that identifies whether it’s a service-related entry or an eventgroup-related entry.
Variants§
FindService = 0
FindService entry (0x00) - Used to discover available services.
OfferService = 1
OfferService entry (0x01) - Used to announce service availability.
Note: StopOfferService uses OfferService (0x01) with TTL=0.
Subscribe = 6
Subscribe entry (0x06) - Used to subscribe to eventgroups.
Note: StopSubscribe uses Subscribe (0x06) with TTL=0.
SubscribeAck = 7
SubscribeAck entry (0x07) - Acknowledgment for Subscribe requests.
Implementations§
Source§impl EntryType
impl EntryType
Sourcepub fn is_service_entry(&self) -> bool
pub fn is_service_entry(&self) -> bool
Returns true if this is a service entry type (not eventgroup).
Service entry types are FindService and OfferService.
Sourcepub fn is_eventgroup_entry(&self) -> bool
pub fn is_eventgroup_entry(&self) -> bool
Returns true if this is an eventgroup entry type (not service).
Eventgroup entry types are Subscribe and SubscribeAck.