Enum smoltcp::wire::NdiscOptionRepr [−][src]
pub enum NdiscOptionRepr<'a> {
SourceLinkLayerAddr(RawHardwareAddress),
TargetLinkLayerAddr(RawHardwareAddress),
PrefixInformation(PrefixInformation),
RedirectedHeader(RedirectedHeader<'a>),
Mtu(u32),
Unknown {
type_: u8,
length: u8,
data: &'a [u8],
},
}
Expand description
A high-level representation of an NDISC Option.
Variants
SourceLinkLayerAddr(RawHardwareAddress)
Tuple Fields
TargetLinkLayerAddr(RawHardwareAddress)
Tuple Fields
PrefixInformation(PrefixInformation)
Tuple Fields
RedirectedHeader(RedirectedHeader<'a>)
Tuple Fields
0: RedirectedHeader<'a>
Mtu(u32)
Tuple Fields
0: u32
Unknown
Implementations
Parse an NDISC Option and return a high-level representation.
Return the length of a header that will be emitted from this high-level representation.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Repr<'a>
impl<'a> UnwindSafe for Repr<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more