pub struct OptionWatchEntry {
pub interface_id: Option<u64>,
pub source_address: Option<Ipv6Address>,
pub option_type: Option<u8>,
pub body: Option<Vec<u8>>,
/* private fields */
}
Expand description
An entry representing a single option received in an NDP message.
The option_type
and body
are not guaranteed to be validated in any way
other than the body
conforming to length requirements as specified in RFC
4861 section
4.6.
Fields§
§interface_id: Option<u64>
The interface on which the NDP message containing the option was received.
Always present.
source_address: Option<Ipv6Address>
The source address of the IPv6 packet containing the NDP message in which the option was received.
Always present.
option_type: Option<u8>
The NDP option type.
Always present.
body: Option<Vec<u8>>
The body of the NDP option.
The raw bytes of the NDP option excluding the leading two bytes for the type and the length according to RFC 4861 section 4.6. The body is padded such that if it were prepended with a type octet and a length octet to match the format described in RFC 4861 section 4.6, its length would be a multiple of 8 octets (as required by the RFC).
Always present.
Trait Implementations§
Source§impl Clone for OptionWatchEntry
impl Clone for OptionWatchEntry
Source§fn clone(&self) -> OptionWatchEntry
fn clone(&self) -> OptionWatchEntry
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for OptionWatchEntry
impl Debug for OptionWatchEntry
Source§impl<D: ResourceDialect> Decode<OptionWatchEntry, D> for OptionWatchEntry
impl<D: ResourceDialect> Decode<OptionWatchEntry, D> for OptionWatchEntry
Source§impl Default for OptionWatchEntry
impl Default for OptionWatchEntry
Source§fn default() -> OptionWatchEntry
fn default() -> OptionWatchEntry
Source§impl<D: ResourceDialect> Encode<OptionWatchEntry, D> for &OptionWatchEntry
impl<D: ResourceDialect> Encode<OptionWatchEntry, D> for &OptionWatchEntry
Source§impl PartialEq for OptionWatchEntry
impl PartialEq for OptionWatchEntry
Source§impl TypeMarker for OptionWatchEntry
impl TypeMarker for OptionWatchEntry
Source§type Owned = OptionWatchEntry
type Owned = OptionWatchEntry
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for OptionWatchEntry
impl ValueTypeMarker for OptionWatchEntry
Source§type Borrowed<'a> = &'a OptionWatchEntry
type Borrowed<'a> = &'a OptionWatchEntry
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more