Struct packet_formats::icmp::mld::Mldv1Message
source · #[repr(C)]pub struct Mldv1Message {
pub max_response_delay: U16,
pub group_addr: Ipv6Addr,
/* private fields */
}
Expand description
The layout for an MLDv1 message body.
Fields§
§max_response_delay: U16
Max Response Delay, in units of milliseconds.
group_addr: Ipv6Addr
In a Query message, the Multicast Address field is set to zero when sending a General Query, and set to a specific IPv6 multicast address when sending a Multicast-Address-Specific Query.
In a Report or Done message, the Multicast Address field holds a specific IPv6 multicast address to which the message sender is listening or is ceasing to listen, respectively.
Implementations§
source§impl Mldv1Message
impl Mldv1Message
sourcepub fn max_response_delay(&self) -> Duration
pub fn max_response_delay(&self) -> Duration
Gets the response delay value.
Trait Implementations§
source§impl Clone for Mldv1Message
impl Clone for Mldv1Message
source§fn clone(&self) -> Mldv1Message
fn clone(&self) -> Mldv1Message
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 Mldv1Message
impl Debug for Mldv1Message
source§impl FromBytes for Mldv1Messagewhere
U16: FromBytes,
Ipv6Addr: FromBytes,
impl FromBytes for Mldv1Messagewhere
U16: FromBytes,
Ipv6Addr: FromBytes,
§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 Mldv1Messagewhere
U16: FromZeros,
Ipv6Addr: FromZeros,
impl FromZeros for Mldv1Messagewhere
U16: FromZeros,
Ipv6Addr: FromZeros,
source§impl IntoBytes for Mldv1Messagewhere
U16: IntoBytes,
Ipv6Addr: IntoBytes,
HasPadding<Mldv1Message, { _ }>: ShouldBe<false>,
impl IntoBytes for Mldv1Messagewhere
U16: IntoBytes,
Ipv6Addr: IntoBytes,
HasPadding<Mldv1Message, { _ }>: ShouldBe<false>,
impl Copy for Mldv1Message
impl Unaligned for Mldv1Messagewhere
U16: Unaligned,
Ipv6Addr: Unaligned,
Auto Trait Implementations§
impl Freeze for Mldv1Message
impl RefUnwindSafe for Mldv1Message
impl Send for Mldv1Message
impl Sync for Mldv1Message
impl Unpin for Mldv1Message
impl UnwindSafe for Mldv1Message
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