Enum someip_messages::SdOption
source · pub enum SdOption {
Ip4Unicast(SdEndpointOption),
Ip4Multicast(SdEndpointOption),
Ip6Unicast(SdEndpointOption),
Ip6Multicast(SdEndpointOption),
}
Expand description
Different kinds of SdOption accepted in a SdPayload.
Variants§
Ip4Unicast(SdEndpointOption)
Ip4 unicast endpoint option
Ip4Multicast(SdEndpointOption)
Ip4 multicast endpoint option
Ip6Unicast(SdEndpointOption)
Ip6 unicast endpoint option
Ip6Multicast(SdEndpointOption)
Ip6 multicast endpoint option
Implementations§
source§impl SdOption
impl SdOption
sourcepub fn is_ip_option(option_type: u8) -> bool
pub fn is_ip_option(option_type: u8) -> bool
Returns true if this is a IP option
sourcepub fn is_ip4_option(option_type: u8) -> bool
pub fn is_ip4_option(option_type: u8) -> bool
Returns true if this is a IPv4 option
sourcepub fn is_ip6_option(option_type: u8) -> bool
pub fn is_ip6_option(option_type: u8) -> bool
Returns true if this is a IPv6 option
sourcepub fn is_multicast_option(option_type: u8) -> bool
pub fn is_multicast_option(option_type: u8) -> bool
Returns true if this is a multicast option
Trait Implementations§
source§impl PartialEq<SdOption> for SdOption
impl PartialEq<SdOption> for SdOption
impl Eq for SdOption
impl StructuralEq for SdOption
impl StructuralPartialEq for SdOption
Auto Trait Implementations§
impl RefUnwindSafe for SdOption
impl Send for SdOption
impl Sync for SdOption
impl Unpin for SdOption
impl UnwindSafe for SdOption
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