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)
TargetLinkLayerAddr(RawHardwareAddress)
PrefixInformation(PrefixInformation)
RedirectedHeader(RedirectedHeader<'a>)
Mtu(u32)
Unknown
Implementations§
Trait Implementations§
impl<'a> Copy for Repr<'a>
impl<'a> Eq for Repr<'a>
impl<'a> StructuralPartialEq for Repr<'a>
Auto Trait Implementations§
impl<'a> Freeze for Repr<'a>
impl<'a> RefUnwindSafe for Repr<'a>
impl<'a> Send for Repr<'a>
impl<'a> Sync for Repr<'a>
impl<'a> Unpin for Repr<'a>
impl<'a> UnwindSafe for Repr<'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