Enum netlink_sys::rtnl::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
UnspecUnknown
RedirectRoute was learnt by an ICMP redirect
KernelRoute was learnt by the kernel
BootRoute was learnt during boot
StaticRoute was set statically
GatedRaMrtZebraBirdDnroutedXorpNtkDhcpMroutedBabelUnknown(u8)
Trait Implementations
impl Debug for RouteProtocol[src]
impl Debug for RouteProtocolfn 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 RouteProtocol[src]
impl PartialEq for RouteProtocolfn eq(&self, other: &RouteProtocol) -> bool[src]
fn eq(&self, other: &RouteProtocol) -> boolThis 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) -> boolThis method tests for !=.
impl Eq for RouteProtocol[src]
impl Eq for RouteProtocolimpl Hash for RouteProtocol[src]
impl Hash for RouteProtocolfn 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 RouteProtocolimpl Clone for RouteProtocol[src]
impl Clone for RouteProtocolfn clone(&self) -> RouteProtocol[src]
fn clone(&self) -> RouteProtocolReturns 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 u8fn from(value: RouteProtocol) -> u8[src]
fn from(value: RouteProtocol) -> u8Performs the conversion.
impl From<u8> for RouteProtocol[src]
impl From<u8> for RouteProtocolfn from(value: u8) -> RouteProtocol[src]
fn from(value: u8) -> RouteProtocolPerforms the conversion.
Auto Trait Implementations
impl Send for RouteProtocol
impl Send for RouteProtocolimpl Sync for RouteProtocol
impl Sync for RouteProtocol