Struct OptionWatchEntry
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§
§impl Clone for OptionWatchEntry
impl Clone for OptionWatchEntry
§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 more§impl Debug for OptionWatchEntry
impl Debug for OptionWatchEntry
§impl<D> Decode<OptionWatchEntry, D> for OptionWatchEntrywhere
D: ResourceDialect,
impl<D> Decode<OptionWatchEntry, D> for OptionWatchEntrywhere
D: ResourceDialect,
§fn new_empty() -> OptionWatchEntry
fn new_empty() -> OptionWatchEntry
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl Default for OptionWatchEntry
impl Default for OptionWatchEntry
§fn default() -> OptionWatchEntry
fn default() -> OptionWatchEntry
§impl<D> Encode<OptionWatchEntry, D> for &OptionWatchEntrywhere
D: ResourceDialect,
impl<D> Encode<OptionWatchEntry, D> for &OptionWatchEntrywhere
D: ResourceDialect,
§impl PartialEq for OptionWatchEntry
impl PartialEq for OptionWatchEntry
§impl TypeMarker for OptionWatchEntry
impl TypeMarker for OptionWatchEntry
§type Owned = OptionWatchEntry
type Owned = OptionWatchEntry
§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
§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.§impl ValueTypeMarker for OptionWatchEntry
impl ValueTypeMarker for OptionWatchEntry
§type Borrowed<'a> = &'a OptionWatchEntry
type Borrowed<'a> = &'a OptionWatchEntry
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more§fn borrow(
value: &<OptionWatchEntry as TypeMarker>::Owned,
) -> <OptionWatchEntry as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<OptionWatchEntry as TypeMarker>::Owned, ) -> <OptionWatchEntry as ValueTypeMarker>::Borrowed<'_>
&Self::Owned
to Self::Borrowed
.