Struct netlink_sys::rtnl::RouteFlags [−][src]
pub struct RouteFlags(_);
Methods
impl RouteFlags[src]
impl RouteFlagspub fn new() -> Self[src]
pub fn new() -> SelfCreate a new empty flags field (no flag is set)
pub fn has_notify(self) -> bool[src]
pub fn has_notify(self) -> boolCheck 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) -> boolCheck 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) -> boolCheck 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) -> boolCheck 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) -> boolCheck 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) -> boolCheck 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 RouteFlagsfn 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 RouteFlags[src]
impl PartialEq for RouteFlagsfn eq(&self, other: &RouteFlags) -> bool[src]
fn eq(&self, other: &RouteFlags) -> boolThis 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) -> boolThis method tests for !=.
impl Eq for RouteFlags[src]
impl Eq for RouteFlagsimpl Hash for RouteFlags[src]
impl Hash for RouteFlagsfn 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 RouteFlagsimpl Clone for RouteFlags[src]
impl Clone for RouteFlagsfn clone(&self) -> RouteFlags[src]
fn clone(&self) -> RouteFlagsReturns 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 RouteFlagsimpl From<RouteFlags> for u32[src]
impl From<RouteFlags> for u32fn from(value: RouteFlags) -> Self[src]
fn from(value: RouteFlags) -> SelfPerforms the conversion.
impl Default for RouteFlags[src]
impl Default for RouteFlagsAuto Trait Implementations
impl Send for RouteFlags
impl Send for RouteFlagsimpl Sync for RouteFlags
impl Sync for RouteFlags