Struct packet_formats::icmp::mld::MulticastRecordHeader
source · #[repr(C)]pub struct MulticastRecordHeader { /* private fields */ }
Expand description
Fixed information for an MLDv2 Report’s Multicast Record, per RFC 3810 section 5.2.
Implementations§
source§impl MulticastRecordHeader
impl MulticastRecordHeader
sourcepub fn number_of_sources(&self) -> u16
pub fn number_of_sources(&self) -> u16
Returns the number of sources.
sourcepub fn record_type(
&self
) -> Result<Mldv2MulticastRecordType, UnrecognizedProtocolCode<u8>>
pub fn record_type( &self ) -> Result<Mldv2MulticastRecordType, UnrecognizedProtocolCode<u8>>
Returns the type of the record.
sourcepub fn multicast_addr(&self) -> &Ipv6Addr
pub fn multicast_addr(&self) -> &Ipv6Addr
Returns the multicast address.
Trait Implementations§
source§impl Clone for MulticastRecordHeader
impl Clone for MulticastRecordHeader
source§fn clone(&self) -> MulticastRecordHeader
fn clone(&self) -> MulticastRecordHeader
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 MulticastRecordHeader
impl Debug for MulticastRecordHeader
source§impl FromBytes for MulticastRecordHeader
impl FromBytes for MulticastRecordHeader
§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 MulticastRecordHeader
impl FromZeros for MulticastRecordHeader
source§impl IntoBytes for MulticastRecordHeaderwhere
u8: IntoBytes,
U16: IntoBytes,
Ipv6Addr: IntoBytes,
HasPadding<MulticastRecordHeader, { _ }>: ShouldBe<false>,
impl IntoBytes for MulticastRecordHeaderwhere
u8: IntoBytes,
U16: IntoBytes,
Ipv6Addr: IntoBytes,
HasPadding<MulticastRecordHeader, { _ }>: ShouldBe<false>,
impl Copy for MulticastRecordHeader
impl Unaligned for MulticastRecordHeader
Auto Trait Implementations§
impl Freeze for MulticastRecordHeader
impl RefUnwindSafe for MulticastRecordHeader
impl Send for MulticastRecordHeader
impl Sync for MulticastRecordHeader
impl Unpin for MulticastRecordHeader
impl UnwindSafe for MulticastRecordHeader
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