pub enum NdiscRepr<'a> {
RouterSolicit {
lladdr: Option<RawHardwareAddress>,
},
RouterAdvert {
hop_limit: u8,
flags: RouterFlags,
router_lifetime: Duration,
reachable_time: Duration,
retrans_time: Duration,
lladdr: Option<RawHardwareAddress>,
mtu: Option<u32>,
prefix_info: Option<NdiscPrefixInformation>,
},
NeighborSolicit {
target_addr: Ipv6Address,
lladdr: Option<RawHardwareAddress>,
},
NeighborAdvert {
flags: NeighborFlags,
target_addr: Ipv6Address,
lladdr: Option<RawHardwareAddress>,
},
Redirect {
target_addr: Ipv6Address,
dest_addr: Ipv6Address,
lladdr: Option<RawHardwareAddress>,
redirected_hdr: Option<NdiscRedirectedHeader<'a>>,
},
}
Expand description
A high-level representation of an Neighbor Discovery packet header.
Variants§
RouterSolicit
Fields
§
lladdr: Option<RawHardwareAddress>
RouterAdvert
Fields
§
flags: RouterFlags
§
lladdr: Option<RawHardwareAddress>
§
prefix_info: Option<NdiscPrefixInformation>
NeighborSolicit
NeighborAdvert
Redirect
Fields
§
target_addr: Ipv6Address
§
dest_addr: Ipv6Address
§
lladdr: Option<RawHardwareAddress>
§
redirected_hdr: Option<NdiscRedirectedHeader<'a>>
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