pub enum RejectType {
TcpReset,
NetUnreachable,
HostUnreachable,
ProtoUnreachable,
PortUnreachable,
RoutePolicyFail,
RejectRoute,
AdminProhibited,
}Expand description
IPv4-specific reject types.
Variants§
TcpReset
Send a TCP RST packet.
NetUnreachable
Network unreachable.
IPv4: ICMP Destination network unreachable (type 3, code 0). IPv6: ICMPv6 No route to destination (type 1, code 1).
HostUnreachable
Host unreachable.
IPv4: ICMP Host unreachable (type 3, code 1). IPv6: ICMPv6 Address unreachable (type 1, code 3).
ProtoUnreachable
Protocol unreachable.
IPv4: ICMP Protocol unreachable (type 3, code 2). IPv6: ICMPv6 Unrecognized Next Header type encountered (type 4, code 1).
PortUnreachable
Port unreachable.
IPv4: ICMP Port unreachable (type 3, code 3). IPv6: ICMPv6 Port unreachable (type 1, code 4).
RoutePolicyFail
Route to the destination network is prohibited.
IPv4: ICMP Network administratively prohibited (type 3, code 9). IPv6: ICMPv6 Source address failed ingress/egress policy (type 1, code 5).
RejectRoute
Reject route.
IPv4: ICMP Host administratively prohibited (type 3, code 10). IPv6: ICMPv6 Reject route to destination (type 1, code 6).
AdminProhibited
Communication administratively prohibited.
IPv4: ICMP Communication administratively prohibited (type 3, code 13). IPv6: ICMPv6 Communication administratively prohibited (type 1, code 1).
Trait Implementations§
Source§impl Clone for RejectType
impl Clone for RejectType
Source§fn clone(&self) -> RejectType
fn clone(&self) -> RejectType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RejectType
impl Debug for RejectType
Source§impl PartialEq for RejectType
impl PartialEq for RejectType
impl Copy for RejectType
impl Eq for RejectType
impl StructuralPartialEq for RejectType
Auto Trait Implementations§
impl Freeze for RejectType
impl RefUnwindSafe for RejectType
impl Send for RejectType
impl Sync for RejectType
impl Unpin for RejectType
impl UnsafeUnpin for RejectType
impl UnwindSafe for RejectType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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>
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>
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