Enum netlink_sys::rtnl::RouteKind [−][src]
pub enum RouteKind {
Unspec,
Unicast,
Local,
Broadcast,
Anycast,
Multicast,
Blackhole,
Unreachable,
Prohibit,
Throw,
Nat,
Xresolve,
Unknown(u8),
}Route type
Variants
UnspecUnknown route
UnicastA gateway or direct route
LocalA local interface route
BroadcastA local broadcast route (sent as a broadcast)
AnycastA local broadcast route (sent as a unicast)
MulticastA multicast route
BlackholeA packet dropping route
UnreachableAn unreachable destination
ProhibitA packet rejection route
ThrowContinue routing lookup in another table
NatA network address translation rule
XresolveRefer to an external resolver (not implemented)
Unknown(u8)
Trait Implementations
impl Debug for RouteKind[src]
impl Debug for RouteKindfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for RouteKind[src]
impl PartialEq for RouteKindfn eq(&self, other: &RouteKind) -> bool[src]
fn eq(&self, other: &RouteKind) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &RouteKind) -> bool[src]
fn ne(&self, other: &RouteKind) -> boolThis method tests for !=.
impl Eq for RouteKind[src]
impl Eq for RouteKindimpl Hash for RouteKind[src]
impl Hash for RouteKindfn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0
[src]Feeds a slice of this type into the given [Hasher]. Read more
impl Copy for RouteKind[src]
impl Copy for RouteKindimpl Clone for RouteKind[src]
impl Clone for RouteKindfn clone(&self) -> RouteKind[src]
fn clone(&self) -> RouteKindReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl From<RouteKind> for u8[src]
impl From<RouteKind> for u8impl From<u8> for RouteKind[src]
impl From<u8> for RouteKind