Struct NdiscPrefixInformation
pub struct NdiscPrefixInformation {
pub prefix_len: u8,
pub flags: PrefixInfoFlags,
pub valid_lifetime: Duration,
pub preferred_lifetime: Duration,
pub prefix: Ipv6Addr,
}Expand description
The fields of a Prefix Information option.
See RFC 4861 § 4.6.2.
Fields§
§prefix_len: u8The number of leading bits of prefix that are valid.
flags: PrefixInfoFlagsThe on-link and autonomous address-configuration flags.
valid_lifetime: DurationHow long the prefix is valid for on-link determination.
preferred_lifetime: DurationHow long addresses formed from the prefix stay preferred.
prefix: Ipv6AddrThe prefix. Bits past prefix_len are not meaningful.
Trait Implementations§
§impl Clone for PrefixInformation
impl Clone for PrefixInformation
§fn clone(&self) -> PrefixInformation
fn clone(&self) -> PrefixInformation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PrefixInformation
§impl Debug for PrefixInformation
impl Debug for PrefixInformation
impl Eq for PrefixInformation
§impl Format for PrefixInformation
impl Format for PrefixInformation
§impl PartialEq for PrefixInformation
impl PartialEq for PrefixInformation
impl StructuralPartialEq for PrefixInformation
Auto Trait Implementations§
impl Forget for PrefixInformation
impl Freeze for PrefixInformation
impl Move for PrefixInformation
impl RefUnwindSafe for PrefixInformation
impl Send for PrefixInformation
impl Sync for PrefixInformation
impl Unpin for PrefixInformation
impl UnsafeUnpin for PrefixInformation
impl UnwindSafe for PrefixInformation
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