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>
Source§fn parse_metadata(&self) -> ParseMetadata
 
fn parse_metadata(&self) -> ParseMetadata
Gets metadata about this packet required by 
GrowBuffer::undo_parse. Read moreSource§fn parse<BV: BufferView<B>>(buf: BV, _args: ()) -> Result<Self, ParseError>
 
fn parse<BV: BufferView<B>>(buf: BV, _args: ()) -> Result<Self, ParseError>
Parses a packet from a buffer. Read more
Source§fn parse_mut<BV>(buffer: BV, args: ParseArgs) -> Result<Self, Self::Error>where
    BV: BufferViewMut<B>,
    B: SplitByteSliceMut,
 
fn parse_mut<BV>(buffer: BV, args: ParseArgs) -> Result<Self, Self::Error>where
    BV: BufferViewMut<B>,
    B: SplitByteSliceMut,
Parses a packet from a mutable buffer. Read more
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