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>
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