Struct rtnetlink::RouteFlags [−][src]
pub struct RouteFlags(_);
Methods
impl RouteFlags
[src]
impl RouteFlags
pub fn new() -> Self
[src]
pub fn new() -> Self
Create a new empty flags field (no flag is set)
pub fn has_notify(self) -> bool
[src]
pub fn has_notify(self) -> bool
Check whether theRTM_F_NOTIFY
flag is set. If this flag is set and the route changes, a
rtnetlink notification is sent to the user by the kernel.
pub fn set_notify(&mut self)
[src]
pub fn set_notify(&mut self)
Set the RTM_F_NOTIFY
flag. If this flag is set and the route changes, a rtnetlink
notification is sent to the user by the kernel.
pub fn has_cloned(self) -> bool
[src]
pub fn has_cloned(self) -> bool
Check whether theRTM_F_CLONED
flag is set. This flag is set if the route is cloned from
another route.
pub fn set_cloned(&mut self)
[src]
pub fn set_cloned(&mut self)
Set theRTM_F_CLONED
flag. This flag is set if the route is cloned from another route.
pub fn has_equalize(self) -> bool
[src]
pub fn has_equalize(self) -> bool
Check whether theRTM_F_EQUALIZE
flag is set.
pub fn set_equalize(&mut self)
[src]
pub fn set_equalize(&mut self)
Set theRTM_F_EQUALIZE
flag.
pub fn has_prefix(self) -> bool
[src]
pub fn has_prefix(self) -> bool
Check whether theRTM_F_PREFIX
flag is set.
pub fn set_prefix(&mut self)
[src]
pub fn set_prefix(&mut self)
Set theRTM_F_PREFIX
flag.
pub fn has_lookup_table(self) -> bool
[src]
pub fn has_lookup_table(self) -> bool
Check whether theRTM_F_LOOKUP_TABLE
flag is set.
pub fn set_lookup_table(&mut self)
[src]
pub fn set_lookup_table(&mut self)
Set theRTM_F_LOOKUP_TABLE
flag.
pub fn has_fib_match(self) -> bool
[src]
pub fn has_fib_match(self) -> bool
Check whether theRTM_F_FIB_MATCH
flag is set.
pub fn set_fib_match(&mut self)
[src]
pub fn set_fib_match(&mut self)
Set theRTM_F_FIB_MATCH
flag.
Trait Implementations
impl Debug for RouteFlags
[src]
impl Debug for RouteFlags
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 RouteFlags
[src]
impl PartialEq for RouteFlags
fn eq(&self, other: &RouteFlags) -> bool
[src]
fn eq(&self, other: &RouteFlags) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &RouteFlags) -> bool
[src]
fn ne(&self, other: &RouteFlags) -> bool
This method tests for !=
.
impl Eq for RouteFlags
[src]
impl Eq for RouteFlags
impl Hash for RouteFlags
[src]
impl Hash for RouteFlags
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,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Copy for RouteFlags
[src]
impl Copy for RouteFlags
impl Clone for RouteFlags
[src]
impl Clone for RouteFlags
fn clone(&self) -> RouteFlags
[src]
fn clone(&self) -> RouteFlags
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)
Performs copy-assignment from source
. Read more
impl From<u32> for RouteFlags
[src]
impl From<u32> for RouteFlags
impl From<RouteFlags> for u32
[src]
impl From<RouteFlags> for u32
fn from(value: RouteFlags) -> Self
[src]
fn from(value: RouteFlags) -> Self
Performs the conversion.
impl Default for RouteFlags
[src]
impl Default for RouteFlags
Auto Trait Implementations
impl Send for RouteFlags
impl Send for RouteFlags
impl Sync for RouteFlags
impl Sync for RouteFlags