#[non_exhaustive]pub enum IcmpKind {
V4,
V6,
}Expand description
ICMP protocol version.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
impl Copy for IcmpKind
impl Eq for IcmpKind
impl StructuralPartialEq for IcmpKind
Auto Trait Implementations§
impl Freeze for IcmpKind
impl RefUnwindSafe for IcmpKind
impl Send for IcmpKind
impl Sync for IcmpKind
impl Unpin for IcmpKind
impl UnsafeUnpin for IcmpKind
impl UnwindSafe for IcmpKind
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