pub enum IcmpVersion {
V4,
V6,
}Expand description
Identify whether an ICMP definition targets IPv4 or IPv6.
Variants§
Trait Implementations§
Source§impl Clone for IcmpVersion
impl Clone for IcmpVersion
Source§fn clone(&self) -> IcmpVersion
fn clone(&self) -> IcmpVersion
Returns a duplicate 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 IcmpVersion
impl Debug for IcmpVersion
Source§impl Hash for IcmpVersion
impl Hash for IcmpVersion
Source§impl Ord for IcmpVersion
impl Ord for IcmpVersion
Source§fn cmp(&self, other: &IcmpVersion) -> Ordering
fn cmp(&self, other: &IcmpVersion) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for IcmpVersion
impl PartialEq for IcmpVersion
Source§impl PartialOrd for IcmpVersion
impl PartialOrd for IcmpVersion
impl Copy for IcmpVersion
impl Eq for IcmpVersion
impl StructuralPartialEq for IcmpVersion
Auto Trait Implementations§
impl Freeze for IcmpVersion
impl RefUnwindSafe for IcmpVersion
impl Send for IcmpVersion
impl Sync for IcmpVersion
impl Unpin for IcmpVersion
impl UnwindSafe for IcmpVersion
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