Struct rtnetlink::LinkFlags [−][src]
pub struct LinkFlags(pub u32);
Methods
impl LinkFlags
[src]
impl LinkFlags
pub fn new() -> Self
[src]
pub fn new() -> Self
pub fn set_up(&mut self)
[src]
pub fn set_up(&mut self)
Set the IFF_UP
flag
pub fn unset_up(&mut self)
[src]
pub fn unset_up(&mut self)
Unset the IFF_UP
flag
pub fn is_up(self) -> bool
[src]
pub fn is_up(self) -> bool
Check if the IFF_UP
flag is set
pub fn set_running(&mut self)
[src]
pub fn set_running(&mut self)
Set the IFF_RUNNING
flag
pub fn unset_running(&mut self)
[src]
pub fn unset_running(&mut self)
Unset the IFF_RUNNING
flag
pub fn is_running(self) -> bool
[src]
pub fn is_running(self) -> bool
Check if the IFF_RUNNING
flag is set
pub fn set_lower_up(&mut self)
[src]
pub fn set_lower_up(&mut self)
Set the IFF_LOWER_UP
flag
pub fn unset_lower_up(&mut self)
[src]
pub fn unset_lower_up(&mut self)
Unset the IFF_LOWER_UP
flag
pub fn is_lower_up(self) -> bool
[src]
pub fn is_lower_up(self) -> bool
Check if the IFF_LOWER_UP
flag is set
pub fn set_dormant(&mut self)
[src]
pub fn set_dormant(&mut self)
Set the IFF_DORMANT
flag
pub fn unset_dormant(&mut self)
[src]
pub fn unset_dormant(&mut self)
Unset the IFF_DORMANT
flag
pub fn is_dormant(self) -> bool
[src]
pub fn is_dormant(self) -> bool
Check if the IFF_DORMANT
flag is set
pub fn set_broadcast(&mut self)
[src]
pub fn set_broadcast(&mut self)
Set the IFF_BROADCAST
flag
pub fn unset_broadcast(&mut self)
[src]
pub fn unset_broadcast(&mut self)
Unset the IFF_BROADCAST
flag
pub fn is_broadcast(self) -> bool
[src]
pub fn is_broadcast(self) -> bool
Check if the IFF_BROADCAST
flag is set
pub fn set_multicast(&mut self)
[src]
pub fn set_multicast(&mut self)
Set the IFF_MULTICAST
flag
pub fn unset_multicast(&mut self)
[src]
pub fn unset_multicast(&mut self)
Unset the IFF_MULTICAST
flag
pub fn is_multicast(self) -> bool
[src]
pub fn is_multicast(self) -> bool
Check if the IFF_MULTICAST
flag is set
pub fn set_allmulti(&mut self)
[src]
pub fn set_allmulti(&mut self)
Set the IFF_ALLMULTI
flag
pub fn unset_allmulti(&mut self)
[src]
pub fn unset_allmulti(&mut self)
Unset the IFF_ALLMULTI
flag
pub fn is_allmulti(self) -> bool
[src]
pub fn is_allmulti(self) -> bool
Check if the IFF_ALLMULTI
flag is set
pub fn set_debug(&mut self)
[src]
pub fn set_debug(&mut self)
Set the IFF_DEBUG
flag
pub fn unset_debug(&mut self)
[src]
pub fn unset_debug(&mut self)
Unset the IFF_DEBUG
flag
pub fn is_debug(self) -> bool
[src]
pub fn is_debug(self) -> bool
Check if the IFF_DEBUG
flag is set
pub fn set_loopback(&mut self)
[src]
pub fn set_loopback(&mut self)
Set the IFF_LOOPBACK
flag
pub fn unset_loopback(&mut self)
[src]
pub fn unset_loopback(&mut self)
Unset the IFF_LOOPBACK
flag
pub fn is_loopback(self) -> bool
[src]
pub fn is_loopback(self) -> bool
Check if the IFF_LOOPBACK
flag is set
pub fn set_point_to_point(&mut self)
[src]
pub fn set_point_to_point(&mut self)
Set the IFF_POINTOPOINT
flag
pub fn unset_point_to_point(&mut self)
[src]
pub fn unset_point_to_point(&mut self)
Unset the IFF_POINTOPOINT
flag
pub fn is_point_to_point(self) -> bool
[src]
pub fn is_point_to_point(self) -> bool
Check if the IFF_POINTOPOINT
flag is set
pub fn set_no_arp(&mut self)
[src]
pub fn set_no_arp(&mut self)
Set the IFF_NOARP
flag
pub fn unset_no_arp(&mut self)
[src]
pub fn unset_no_arp(&mut self)
Unset the IFF_NOARP
flag
pub fn is_no_arp(self) -> bool
[src]
pub fn is_no_arp(self) -> bool
Check if the IFF_NOARP
flag is set
pub fn set_promiscuous(&mut self)
[src]
pub fn set_promiscuous(&mut self)
Set the IFF_PROMISC
flag
pub fn unset_promiscuous(&mut self)
[src]
pub fn unset_promiscuous(&mut self)
Unset the IFF_PROMISCUOUS
flag
pub fn is_promiscuous(self) -> bool
[src]
pub fn is_promiscuous(self) -> bool
Check if the IFF_PROMISC
flag is set
pub fn set_master(&mut self)
[src]
pub fn set_master(&mut self)
Set the IFF_MASTER
flag
pub fn unset_master(&mut self)
[src]
pub fn unset_master(&mut self)
Unset the IFF_MASTER
flag
pub fn is_master(self) -> bool
[src]
pub fn is_master(self) -> bool
Check if the IFF_MASTER
flag is set
pub fn set_slave(&mut self)
[src]
pub fn set_slave(&mut self)
Set the IFF_SLAVE
flag
pub fn unset_slave(&mut self)
[src]
pub fn unset_slave(&mut self)
Unset the IFF_SLAVE
flag
pub fn is_slave(self) -> bool
[src]
pub fn is_slave(self) -> bool
Check if the IFF_SLAVE
flag is set
pub fn set_port_select(&mut self)
[src]
pub fn set_port_select(&mut self)
Set the IFF_PORTSEL
flag
pub fn unset_port_select(&mut self)
[src]
pub fn unset_port_select(&mut self)
Unset the IFF_PORTSEL
flag
pub fn is_port_select(self) -> bool
[src]
pub fn is_port_select(self) -> bool
Check if the IFF_PORTSEL
flag is set
pub fn set_auto_media_type(&mut self)
[src]
pub fn set_auto_media_type(&mut self)
Set the IFF_AUTOMEDIA
flag
pub fn unset_auto_media_type(&mut self)
[src]
pub fn unset_auto_media_type(&mut self)
Unset the IFF_AUTOMEDIA
flag
pub fn is_auto_media_type(self) -> bool
[src]
pub fn is_auto_media_type(self) -> bool
Check if the IFF_AUTOMEDIA
flag is set
Trait Implementations
impl Debug for LinkFlags
[src]
impl Debug for LinkFlags
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 LinkFlags
[src]
impl PartialEq for LinkFlags
fn eq(&self, other: &LinkFlags) -> bool
[src]
fn eq(&self, other: &LinkFlags) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &LinkFlags) -> bool
[src]
fn ne(&self, other: &LinkFlags) -> bool
This method tests for !=
.
impl Eq for LinkFlags
[src]
impl Eq for LinkFlags
impl Clone for LinkFlags
[src]
impl Clone for LinkFlags
fn clone(&self) -> LinkFlags
[src]
fn clone(&self) -> LinkFlags
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 Copy for LinkFlags
[src]
impl Copy for LinkFlags
impl Hash for LinkFlags
[src]
impl Hash for LinkFlags
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 From<u32> for LinkFlags
[src]
impl From<u32> for LinkFlags
impl<'a> From<&'a LinkFlags> for u32
[src]
impl<'a> From<&'a LinkFlags> for u32
impl From<LinkFlags> for u32
[src]
impl From<LinkFlags> for u32
impl Default for LinkFlags
[src]
impl Default for LinkFlags