pub struct IcmpSenderZeroCode;
Expand description
An ICMP code that is zero on serialization, but ignored on parsing.
This is used for ICMP messages whose specification states that senders must set Code to 0 but receivers must ignore it (e.g. MLD/MLDv2).
Trait Implementations§
Source§impl Clone for IcmpSenderZeroCode
impl Clone for IcmpSenderZeroCode
Source§fn clone(&self) -> IcmpSenderZeroCode
fn clone(&self) -> IcmpSenderZeroCode
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 IcmpSenderZeroCode
impl Debug for IcmpSenderZeroCode
Source§impl From<IcmpSenderZeroCode> for u8
impl From<IcmpSenderZeroCode> for u8
Source§fn from(_: IcmpSenderZeroCode) -> u8
fn from(_: IcmpSenderZeroCode) -> u8
Converts to this type from the input type.
Source§impl From<u8> for IcmpSenderZeroCode
impl From<u8> for IcmpSenderZeroCode
Source§impl PartialEq for IcmpSenderZeroCode
impl PartialEq for IcmpSenderZeroCode
impl Copy for IcmpSenderZeroCode
impl Eq for IcmpSenderZeroCode
impl StructuralPartialEq for IcmpSenderZeroCode
Auto Trait Implementations§
impl Freeze for IcmpSenderZeroCode
impl RefUnwindSafe for IcmpSenderZeroCode
impl Send for IcmpSenderZeroCode
impl Sync for IcmpSenderZeroCode
impl Unpin for IcmpSenderZeroCode
impl UnwindSafe for IcmpSenderZeroCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)