Struct packet_formats_dhcp::v6::IaPrefixData
source · pub struct IaPrefixData<B: SplitByteSlice> { /* private fields */ }
Expand description
An overlay representation of an IA Address option, as per RFC 8415 section 21.22.
Implementations§
source§impl<'a, B: SplitByteSlice> IaPrefixData<B>
impl<'a, B: SplitByteSlice> IaPrefixData<B>
sourcepub fn new(buf: B) -> Result<Self, ParseError>
pub fn new(buf: B) -> Result<Self, ParseError>
Constructs a new IaPrefixData
from a ByteSlice
.
sourcepub fn preferred_lifetime(&self) -> TimeValue
pub fn preferred_lifetime(&self) -> TimeValue
Returns the preferred lifetime as TimeValue
to relay the fact that
certain values have special significance as described in
[RFC 8415, section 7.7].
sourcepub fn valid_lifetime(&self) -> TimeValue
pub fn valid_lifetime(&self) -> TimeValue
Returns the valid lifetime as TimeValue
to relay the fact that certain
values have special significance as described in
[RFC 8415, section 7.7].
sourcepub fn iter_options(&'a self) -> impl 'a + Iterator<Item = ParsedDhcpOption<'a>>
pub fn iter_options(&'a self) -> impl 'a + Iterator<Item = ParsedDhcpOption<'a>>
Returns an iterator over the options.
Trait Implementations§
source§impl<B: Debug + SplitByteSlice> Debug for IaPrefixData<B>
impl<B: Debug + SplitByteSlice> Debug for IaPrefixData<B>
source§impl<B: PartialEq + SplitByteSlice> PartialEq for IaPrefixData<B>
impl<B: PartialEq + SplitByteSlice> PartialEq for IaPrefixData<B>
source§fn eq(&self, other: &IaPrefixData<B>) -> bool
fn eq(&self, other: &IaPrefixData<B>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<B: SplitByteSlice> StructuralPartialEq for IaPrefixData<B>
Auto Trait Implementations§
impl<B> Freeze for IaPrefixData<B>where
B: Freeze,
impl<B> RefUnwindSafe for IaPrefixData<B>where
B: RefUnwindSafe,
impl<B> Send for IaPrefixData<B>where
B: Send,
impl<B> Sync for IaPrefixData<B>where
B: Sync,
impl<B> Unpin for IaPrefixData<B>where
B: Unpin,
impl<B> UnwindSafe for IaPrefixData<B>where
B: UnwindSafe,
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