Struct packet_formats_dhcp::v6::Message
source · pub struct Message<'a, B> { /* private fields */ }
Expand description
A DHCPv6 message as defined in RFC 8415, Section 8.
Implementations§
source§impl<'a, B: ByteSlice> Message<'a, B>
impl<'a, B: ByteSlice> 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§
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