#[repr(u8)]pub enum DestinationUnreachableCode {
NoRouteToDestination = 0,
CommunicationAdministrativelyProhibited = 1,
BeyondScopeOfSourceAddress = 2,
AddressUnreachable = 3,
PortUnreachable = 4,
SourceAddressFailedIngressEgressPolicy = 5,
RejectRouteToDestination = 6,
}Expand description
A code for DestinationUnreachable.
The reason the destination is unreachable.
Variants§
NoRouteToDestination = 0
No route to destination.
CommunicationAdministrativelyProhibited = 1
Communication administratively prohibited.
BeyondScopeOfSourceAddress = 2
Beyond scope of source address.
AddressUnreachable = 3
Address unreachable.
PortUnreachable = 4
Port unreachable.
SourceAddressFailedIngressEgressPolicy = 5
Source address failed ingress/egress policy.
RejectRouteToDestination = 6
Reject route to destination.
Trait Implementations§
Source§impl Clone for DestinationUnreachableCode
impl Clone for DestinationUnreachableCode
Source§fn clone(&self) -> DestinationUnreachableCode
fn clone(&self) -> DestinationUnreachableCode
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 moreSource§impl Codec for DestinationUnreachableCode
impl Codec for DestinationUnreachableCode
impl Copy for DestinationUnreachableCode
Source§impl Debug for DestinationUnreachableCode
impl Debug for DestinationUnreachableCode
impl Eq for DestinationUnreachableCode
Source§impl Hash for DestinationUnreachableCode
impl Hash for DestinationUnreachableCode
Source§impl Ord for DestinationUnreachableCode
impl Ord for DestinationUnreachableCode
Source§fn cmp(&self, other: &DestinationUnreachableCode) -> Ordering
fn cmp(&self, other: &DestinationUnreachableCode) -> 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 PartialOrd for DestinationUnreachableCode
impl PartialOrd for DestinationUnreachableCode
impl StructuralPartialEq for DestinationUnreachableCode
Auto Trait Implementations§
impl Freeze for DestinationUnreachableCode
impl RefUnwindSafe for DestinationUnreachableCode
impl Send for DestinationUnreachableCode
impl Sync for DestinationUnreachableCode
impl Unpin for DestinationUnreachableCode
impl UnsafeUnpin for DestinationUnreachableCode
impl UnwindSafe for DestinationUnreachableCode
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