pub struct Message<'a, B> { /* private fields */ }
Expand description
A DHCPv6 message as defined in RFC 8415, Section 8.
Implementations§
Source§impl<'a, B: SplitByteSlice> Message<'a, B>
impl<'a, B: SplitByteSlice> Message<'a, B>
Sourcepub fn msg_type(&self) -> MessageType
pub fn msg_type(&self) -> MessageType
Returns the message type.
Sourcepub fn transaction_id(&self) -> &[u8; 3]
pub fn transaction_id(&self) -> &[u8; 3]
Returns the transaction ID.
Sourcepub fn options<'b: 'a>(
&'b self,
) -> impl 'b + Iterator<Item = ParsedDhcpOption<'a>>
pub fn options<'b: 'a>( &'b self, ) -> impl 'b + Iterator<Item = ParsedDhcpOption<'a>>
Returns an iterator over the options.
Trait Implementations§
Source§impl<'a, B: 'a + SplitByteSlice + IntoByteSlice<'a>> ParsablePacket<B, ()> for Message<'a, B>
impl<'a, B: 'a + SplitByteSlice + IntoByteSlice<'a>> ParsablePacket<B, ()> for Message<'a, B>
Auto Trait Implementations§
impl<'a, B> Freeze for Message<'a, B>where
B: Freeze,
impl<'a, B> RefUnwindSafe for Message<'a, B>where
B: RefUnwindSafe,
impl<'a, B> Send for Message<'a, B>where
B: Send,
impl<'a, B> Sync for Message<'a, B>where
B: Sync,
impl<'a, B> Unpin for Message<'a, B>where
B: Unpin,
impl<'a, B> UnwindSafe for Message<'a, 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