Enum netlink_sys::rtnl::RouteScope [−][src]
pub enum RouteScope {
Universe,
Site,
Link,
Host,
Nowhere,
Unknown(u8),
}Distance to the destination
Variants
UniverseGlobal route
SiteInterior route in the local autonomous system
LinkRoute on this link
HostRoute on the local host
NowhereDestination doesn't exist
Unknown(u8)
Trait Implementations
impl Debug for RouteScope[src]
impl Debug for RouteScopefn 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 RouteScope[src]
impl PartialEq for RouteScopefn eq(&self, other: &RouteScope) -> bool[src]
fn eq(&self, other: &RouteScope) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &RouteScope) -> bool[src]
fn ne(&self, other: &RouteScope) -> boolThis method tests for !=.
impl Eq for RouteScope[src]
impl Eq for RouteScopeimpl Hash for RouteScope[src]
impl Hash for RouteScopefn 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 RouteScope[src]
impl Copy for RouteScopeimpl Clone for RouteScope[src]
impl Clone for RouteScopefn clone(&self) -> RouteScope[src]
fn clone(&self) -> RouteScopeReturns 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<RouteScope> for u8[src]
impl From<RouteScope> for u8fn from(value: RouteScope) -> u8[src]
fn from(value: RouteScope) -> u8Performs the conversion.
impl From<u8> for RouteScope[src]
impl From<u8> for RouteScopefn from(value: u8) -> RouteScope[src]
fn from(value: u8) -> RouteScopePerforms the conversion.
Auto Trait Implementations
impl Send for RouteScope
impl Send for RouteScopeimpl Sync for RouteScope
impl Sync for RouteScope