Enum rtnetlink::RouteProtocol [−][src]
pub enum RouteProtocol { Unspec, Redirect, Kernel, Boot, Static, Gated, Ra, Mrt, Zebra, Bird, Dnrouted, Xorp, Ntk, Dhcp, Mrouted, Babel, Unknown(u8), }
Route origin
Variants
Unspec
Unknown
Redirect
Route was learnt by an ICMP redirect
Kernel
Route was learnt by the kernel
Boot
Route was learnt during boot
Static
Route was set statically
Gated
Ra
Mrt
Zebra
Bird
Dnrouted
Xorp
Ntk
Dhcp
Mrouted
Babel
Unknown(u8)
Trait Implementations
impl Debug for RouteProtocol
[src]
impl Debug for RouteProtocol
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 RouteProtocol
[src]
impl PartialEq for RouteProtocol
fn eq(&self, other: &RouteProtocol) -> bool
[src]
fn eq(&self, other: &RouteProtocol) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &RouteProtocol) -> bool
[src]
fn ne(&self, other: &RouteProtocol) -> bool
This method tests for !=
.
impl Eq for RouteProtocol
[src]
impl Eq for RouteProtocol
impl Hash for RouteProtocol
[src]
impl Hash for RouteProtocol
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 RouteProtocol
[src]
impl Copy for RouteProtocol
impl Clone for RouteProtocol
[src]
impl Clone for RouteProtocol
fn clone(&self) -> RouteProtocol
[src]
fn clone(&self) -> RouteProtocol
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<RouteProtocol> for u8
[src]
impl From<RouteProtocol> for u8
fn from(value: RouteProtocol) -> u8
[src]
fn from(value: RouteProtocol) -> u8
Performs the conversion.
impl From<u8> for RouteProtocol
[src]
impl From<u8> for RouteProtocol
fn from(value: u8) -> RouteProtocol
[src]
fn from(value: u8) -> RouteProtocol
Performs the conversion.
Auto Trait Implementations
impl Send for RouteProtocol
impl Send for RouteProtocol
impl Sync for RouteProtocol
impl Sync for RouteProtocol