Struct packet_formats::icmp::mld::Mldv2ReportMessageHeader
source · #[repr(C)]pub struct Mldv2ReportMessageHeader { /* private fields */ }
Expand description
The layout for an MLDv2 message body header, per RFC 3810 section 5.2.
Implementations§
source§impl Mldv2ReportMessageHeader
impl Mldv2ReportMessageHeader
sourcepub fn num_mcast_addr_records(&self) -> u16
pub fn num_mcast_addr_records(&self) -> u16
Returns the number of multicast address records found in this message.
Trait Implementations§
source§impl Clone for Mldv2ReportMessageHeader
impl Clone for Mldv2ReportMessageHeader
source§fn clone(&self) -> Mldv2ReportMessageHeader
fn clone(&self) -> Mldv2ReportMessageHeader
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Mldv2ReportMessageHeader
impl Debug for Mldv2ReportMessageHeader
source§impl FromBytes for Mldv2ReportMessageHeader
impl FromBytes for Mldv2ReportMessageHeader
§fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized + NoCell,
fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized + NoCell,
Interprets the prefix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized + NoCell,
fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized + NoCell,
Interprets the suffix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + IntoBytes + NoCell,
fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + IntoBytes + NoCell,
Interprets the prefix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + IntoBytes + NoCell,
fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + IntoBytes + NoCell,
Interprets the suffix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
source§impl FromZeros for Mldv2ReportMessageHeader
impl FromZeros for Mldv2ReportMessageHeader
source§impl IntoBytes for Mldv2ReportMessageHeaderwhere
[u8; 2]: IntoBytes,
U16: IntoBytes,
HasPadding<Mldv2ReportMessageHeader, { _ }>: ShouldBe<false>,
impl IntoBytes for Mldv2ReportMessageHeaderwhere
[u8; 2]: IntoBytes,
U16: IntoBytes,
HasPadding<Mldv2ReportMessageHeader, { _ }>: ShouldBe<false>,
impl Copy for Mldv2ReportMessageHeader
impl Unaligned for Mldv2ReportMessageHeader
Auto Trait Implementations§
impl Freeze for Mldv2ReportMessageHeader
impl RefUnwindSafe for Mldv2ReportMessageHeader
impl Send for Mldv2ReportMessageHeader
impl Sync for Mldv2ReportMessageHeader
impl Unpin for Mldv2ReportMessageHeader
impl UnwindSafe for Mldv2ReportMessageHeader
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