pub enum Option<'a> {
Configuration(ConfigurationOption<'a>),
LoadBalancing(LoadBalancingOption),
Ipv4Endpoint(IpOption<Ipv4Address>),
Ipv6Endpoint(IpOption<Ipv6Address>),
Ipv4Multicast(IpOption<Ipv4Address>),
Ipv6Multicast(IpOption<Ipv6Address>),
Ipv4SdEndpoint(IpOption<Ipv4Address>),
Ipv6SdEndpoint(IpOption<Ipv6Address>),
}
Expand description
SOME/IP service discovery option.
Variants§
Configuration(ConfigurationOption<'a>)
Configuration Option.
LoadBalancing(LoadBalancingOption)
Load Balancing Option.
Ipv4Endpoint(IpOption<Ipv4Address>)
IPv4 Endpoint Option.
Ipv6Endpoint(IpOption<Ipv6Address>)
IPv6 Endpoint Option.
Ipv4Multicast(IpOption<Ipv4Address>)
IPv4 Multicast Option.
Ipv6Multicast(IpOption<Ipv6Address>)
IPv6 Multicast Option.
Ipv4SdEndpoint(IpOption<Ipv4Address>)
IPv4 SD Endpoint Option.
Ipv6SdEndpoint(IpOption<Ipv6Address>)
IPv6 SD Endpoint Option.
Trait Implementations§
Source§impl<'a> Parse<'a> for Option<'a>
impl<'a> Parse<'a> for Option<'a>
Source§fn parse_partial(reader: &mut ByteReader<'a>) -> Result<Option<'a>, ParseError>
fn parse_partial(reader: &mut ByteReader<'a>) -> Result<Option<'a>, ParseError>
Parses a SOME/IP payload type from a given slice of bytes. Read more
Source§impl Serialize for Option<'_>
impl Serialize for Option<'_>
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<'a> Eq for Option<'a>
impl<'a> StructuralPartialEq for Option<'a>
Auto Trait Implementations§
impl<'a> Freeze for Option<'a>
impl<'a> RefUnwindSafe for Option<'a>
impl<'a> Send for Option<'a>
impl<'a> Sync for Option<'a>
impl<'a> Unpin for Option<'a>
impl<'a> UnwindSafe for Option<'a>
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