#[repr(u8)]pub enum OptionType {
Configuration = 1,
LoadBalancing = 2,
IPv4Endpoint = 4,
IPv6Endpoint = 6,
IPv4Multicast = 20,
IPv6Multicast = 22,
IPv4SdEndpoint = 36,
IPv6SdEndpoint = 38,
}Expand description
Option type enumeration for SOME/IP-SD options.
Defines the type field in option headers which determines how to interpret the option payload.
Variants§
Configuration = 1
Configuration option (0x01) - DNS-SD TXT record style key=value pairs
LoadBalancing = 2
Load balancing option (0x02) - Priority and weight for load balancing
IPv4Endpoint = 4
IPv4 endpoint option (0x04) - IPv4 address and port
IPv6Endpoint = 6
IPv6 endpoint option (0x06) - IPv6 address and port
IPv4Multicast = 20
IPv4 multicast option (0x14) - IPv4 multicast address and port
IPv6Multicast = 22
IPv6 multicast option (0x16) - IPv6 multicast address and port
IPv4SdEndpoint = 36
IPv4 SD endpoint option (0x24) - IPv4 address and port for SD messages
IPv6SdEndpoint = 38
IPv6 SD endpoint option (0x26) - IPv6 address and port for SD messages
Implementations§
Trait Implementations§
Source§impl Clone for OptionType
impl Clone for OptionType
Source§fn clone(&self) -> OptionType
fn clone(&self) -> OptionType
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 OptionType
impl Debug for OptionType
Source§impl PartialEq for OptionType
impl PartialEq for OptionType
impl Copy for OptionType
impl Eq for OptionType
impl StructuralPartialEq for OptionType
Auto Trait Implementations§
impl Freeze for OptionType
impl RefUnwindSafe for OptionType
impl Send for OptionType
impl Sync for OptionType
impl Unpin for OptionType
impl UnwindSafe for OptionType
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