pub struct Mldv2ReportBody<B: SplitByteSlice> { /* private fields */ }
Expand description
The on-wire structure for the body of an MLDv2 report message, per [RFC 3910 section 5.2].
Implementations§
Source§impl<B: SplitByteSlice> Mldv2ReportBody<B>
impl<B: SplitByteSlice> Mldv2ReportBody<B>
Sourcepub fn header(&self) -> &Mldv2ReportHeader
pub fn header(&self) -> &Mldv2ReportHeader
Returns the header.
Sourcepub fn iter_multicast_records(
&self,
) -> impl Iterator<Item = MulticastRecord<&[u8]>>
pub fn iter_multicast_records( &self, ) -> impl Iterator<Item = MulticastRecord<&[u8]>>
Returns an iterator over the multicast address records.
Trait Implementations§
Source§impl<B: Debug + SplitByteSlice> Debug for Mldv2ReportBody<B>
impl<B: Debug + SplitByteSlice> Debug for Mldv2ReportBody<B>
Source§impl<B: SplitByteSlice> MessageBody for Mldv2ReportBody<B>
impl<B: SplitByteSlice> MessageBody for Mldv2ReportBody<B>
Source§fn parse(bytes: B) -> ParseResult<Self>
fn parse(bytes: B) -> ParseResult<Self>
Parse the MessageBody from the provided bytes.
Auto Trait Implementations§
impl<B> Freeze for Mldv2ReportBody<B>where
B: Freeze,
impl<B> RefUnwindSafe for Mldv2ReportBody<B>where
B: RefUnwindSafe,
impl<B> Send for Mldv2ReportBody<B>where
B: Send,
impl<B> Sync for Mldv2ReportBody<B>where
B: Sync,
impl<B> Unpin for Mldv2ReportBody<B>where
B: Unpin,
impl<B> UnwindSafe for Mldv2ReportBody<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