pub enum NdpOptionBuilder<'a> {
    SourceLinkLayerAddress(&'a [u8]),
    TargetLinkLayerAddress(&'a [u8]),
    PrefixInformation(PrefixInformation),
    RedirectedHeader {
        original_packet: &'a [u8],
    },
    Mtu(u32),
    Nonce(NdpNonce<&'a [u8]>),
    RouteInformation(RouteInformation),
    RecursiveDnsServer(RecursiveDnsServer<'a>),
}Expand description
Builder for NDP options that may be found in NDP messages.
Variants§
SourceLinkLayerAddress(&'a [u8])
TargetLinkLayerAddress(&'a [u8])
PrefixInformation(PrefixInformation)
RedirectedHeader
Mtu(u32)
Nonce(NdpNonce<&'a [u8]>)
RouteInformation(RouteInformation)
RecursiveDnsServer(RecursiveDnsServer<'a>)
Trait Implementations§
Source§impl<'a> Debug for NdpOptionBuilder<'a>
 
impl<'a> Debug for NdpOptionBuilder<'a>
Source§impl<'a> From<&NdpOptionBuilder<'a>> for NdpOptionType
 
impl<'a> From<&NdpOptionBuilder<'a>> for NdpOptionType
Source§fn from(v: &NdpOptionBuilder<'a>) -> Self
 
fn from(v: &NdpOptionBuilder<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> OptionBuilder for NdpOptionBuilder<'a>
 
impl<'a> OptionBuilder for NdpOptionBuilder<'a>
Source§type Layout = NdpOptionsImpl
 
type Layout = NdpOptionsImpl
Information about the option’s layout.
Source§fn serialized_len(&self) -> usize
 
fn serialized_len(&self) -> usize
Returns the serialized length, in bytes, of 
self. Read moreSource§fn option_kind(&self) -> u8
 
fn option_kind(&self) -> u8
Returns the wire value for this option kind.
Source§fn serialize_into(&self, buffer: &mut [u8])
 
fn serialize_into(&self, buffer: &mut [u8])
Auto Trait Implementations§
impl<'a> Freeze for NdpOptionBuilder<'a>
impl<'a> RefUnwindSafe for NdpOptionBuilder<'a>
impl<'a> Send for NdpOptionBuilder<'a>
impl<'a> Sync for NdpOptionBuilder<'a>
impl<'a> Unpin for NdpOptionBuilder<'a>
impl<'a> UnwindSafe for NdpOptionBuilder<'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
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<O> RecordBuilder for Owhere
    O: OptionBuilder,
 
impl<O> RecordBuilder for Owhere
    O: OptionBuilder,
Source§fn serialized_len(&self) -> usize
 
fn serialized_len(&self) -> usize
Provides the serialized length of a record. Read more
Source§fn serialize_into(&self, data: &mut [u8])
 
fn serialize_into(&self, data: &mut [u8])
Serializes 
self into a buffer. Read more