pub struct DeviceFlags {
pub if_flags: IfFlags,
pub connection_status: ConnectionStatus,
}Fields§
§if_flags: IfFlags§connection_status: ConnectionStatusImplementations§
Source§impl DeviceFlags
impl DeviceFlags
pub fn empty() -> DeviceFlags
pub fn contains(&self, if_flags: IfFlags) -> bool
pub fn is_loopback(&self) -> bool
pub fn is_up(&self) -> bool
pub fn is_running(&self) -> bool
pub fn is_wireless(&self) -> bool
Trait Implementations§
Source§impl Clone for DeviceFlags
impl Clone for DeviceFlags
Source§fn clone(&self) -> DeviceFlags
fn clone(&self) -> DeviceFlags
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeviceFlags
impl Debug for DeviceFlags
Source§impl From<u32> for DeviceFlags
impl From<u32> for DeviceFlags
Source§fn from(flags: u32) -> DeviceFlags
fn from(flags: u32) -> DeviceFlags
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DeviceFlags
impl RefUnwindSafe for DeviceFlags
impl Send for DeviceFlags
impl Sync for DeviceFlags
impl Unpin for DeviceFlags
impl UnwindSafe for DeviceFlags
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more