Enum rtnetlink::RouteKind [−][src]
pub enum RouteKind { Unspec, Unicast, Local, Broadcast, Anycast, Multicast, Blackhole, Unreachable, Prohibit, Throw, Nat, Xresolve, Unknown(u8), }
Route type
Variants
Unspec
Unknown route
Unicast
A gateway or direct route
Local
A local interface route
Broadcast
A local broadcast route (sent as a broadcast)
Anycast
A local broadcast route (sent as a unicast)
Multicast
A multicast route
Blackhole
A packet dropping route
Unreachable
An unreachable destination
Prohibit
A packet rejection route
Throw
Continue routing lookup in another table
Nat
A network address translation rule
Xresolve
Refer to an external resolver (not implemented)
Unknown(u8)
Trait Implementations
impl Debug for RouteKind
[src]
impl Debug for RouteKind
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for RouteKind
[src]
impl PartialEq for RouteKind
fn eq(&self, other: &RouteKind) -> bool
[src]
fn eq(&self, other: &RouteKind) -> bool
This 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) -> bool
This method tests for !=
.
impl Eq for RouteKind
[src]
impl Eq for RouteKind
impl Hash for RouteKind
[src]
impl Hash for RouteKind
fn 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 RouteKind
impl Clone for RouteKind
[src]
impl Clone for RouteKind
fn clone(&self) -> RouteKind
[src]
fn clone(&self) -> RouteKind
Returns 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 u8
impl From<u8> for RouteKind
[src]
impl From<u8> for RouteKind