Enum rtnetlink::RouteScope [−][src]
pub enum RouteScope { Universe, Site, Link, Host, Nowhere, Unknown(u8), }
Distance to the destination
Variants
Universe
Global route
Site
Interior route in the local autonomous system
Link
Route on this link
Host
Route on the local host
Nowhere
Destination doesn't exist
Unknown(u8)
Trait Implementations
impl Debug for RouteScope
[src]
impl Debug for RouteScope
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 RouteScope
[src]
impl PartialEq for RouteScope
fn eq(&self, other: &RouteScope) -> bool
[src]
fn eq(&self, other: &RouteScope) -> bool
This 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) -> bool
This method tests for !=
.
impl Eq for RouteScope
[src]
impl Eq for RouteScope
impl Hash for RouteScope
[src]
impl Hash for RouteScope
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 RouteScope
[src]
impl Copy for RouteScope
impl Clone for RouteScope
[src]
impl Clone for RouteScope
fn clone(&self) -> RouteScope
[src]
fn clone(&self) -> RouteScope
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<RouteScope> for u8
[src]
impl From<RouteScope> for u8
fn from(value: RouteScope) -> u8
[src]
fn from(value: RouteScope) -> u8
Performs the conversion.
impl From<u8> for RouteScope
[src]
impl From<u8> for RouteScope
fn from(value: u8) -> RouteScope
[src]
fn from(value: u8) -> RouteScope
Performs the conversion.
Auto Trait Implementations
impl Send for RouteScope
impl Send for RouteScope
impl Sync for RouteScope
impl Sync for RouteScope