pub enum IcmpTimeExceededCode {
TtlExpired,
FragmentReassembly,
Unknown(u8),
}Expand description
The code for TimeExceeded ICMP packet type.
Variants§
TtlExpired
TTL expired in transit.
FragmentReassembly
Fragment reassembly time exceeded.
Unknown(u8)
An unknown code.
Trait Implementations§
Source§impl Clone for IcmpTimeExceededCode
impl Clone for IcmpTimeExceededCode
Source§fn clone(&self) -> IcmpTimeExceededCode
fn clone(&self) -> IcmpTimeExceededCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for IcmpTimeExceededCode
Source§impl Debug for IcmpTimeExceededCode
impl Debug for IcmpTimeExceededCode
impl Eq for IcmpTimeExceededCode
Source§impl From<IcmpCode> for IcmpTimeExceededCode
impl From<IcmpCode> for IcmpTimeExceededCode
Source§impl Ord for IcmpTimeExceededCode
impl Ord for IcmpTimeExceededCode
Source§fn cmp(&self, other: &IcmpTimeExceededCode) -> Ordering
fn cmp(&self, other: &IcmpTimeExceededCode) -> Ordering
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 PartialEq for IcmpTimeExceededCode
impl PartialEq for IcmpTimeExceededCode
Source§fn eq(&self, other: &IcmpTimeExceededCode) -> bool
fn eq(&self, other: &IcmpTimeExceededCode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for IcmpTimeExceededCode
impl PartialOrd for IcmpTimeExceededCode
impl StructuralPartialEq for IcmpTimeExceededCode
Auto Trait Implementations§
impl Freeze for IcmpTimeExceededCode
impl RefUnwindSafe for IcmpTimeExceededCode
impl Send for IcmpTimeExceededCode
impl Sync for IcmpTimeExceededCode
impl Unpin for IcmpTimeExceededCode
impl UnsafeUnpin for IcmpTimeExceededCode
impl UnwindSafe for IcmpTimeExceededCode
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