pub struct IcmpCode(pub u8);Expand description
The ICMP code.
Tuple Fields§
§0: u8Trait Implementations§
impl Copy for IcmpCode
impl Eq for IcmpCode
Source§impl From<IcmpCode> for IcmpTimeExceededCode
impl From<IcmpCode> for IcmpTimeExceededCode
Source§impl Ord for IcmpCode
impl Ord for IcmpCode
1.21.0 (const: unstable) · 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 PartialOrd for IcmpCode
impl PartialOrd for IcmpCode
impl StructuralPartialEq for IcmpCode
Auto Trait Implementations§
impl Freeze for IcmpCode
impl RefUnwindSafe for IcmpCode
impl Send for IcmpCode
impl Sync for IcmpCode
impl Unpin for IcmpCode
impl UnsafeUnpin for IcmpCode
impl UnwindSafe for IcmpCode
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more