Enum linux_raw_sys::net::net_device_flags
source · #[non_exhaustive]#[repr(u32)]pub enum net_device_flags {
Show 19 variants
IFF_UP = 1,
IFF_BROADCAST = 2,
IFF_DEBUG = 4,
IFF_LOOPBACK = 8,
IFF_POINTOPOINT = 16,
IFF_NOTRAILERS = 32,
IFF_RUNNING = 64,
IFF_NOARP = 128,
IFF_PROMISC = 256,
IFF_ALLMULTI = 512,
IFF_MASTER = 1_024,
IFF_SLAVE = 2_048,
IFF_MULTICAST = 4_096,
IFF_PORTSEL = 8_192,
IFF_AUTOMEDIA = 16_384,
IFF_DYNAMIC = 32_768,
IFF_LOWER_UP = 65_536,
IFF_DORMANT = 131_072,
IFF_ECHO = 262_144,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
IFF_UP = 1
IFF_BROADCAST = 2
IFF_DEBUG = 4
IFF_LOOPBACK = 8
IFF_POINTOPOINT = 16
IFF_NOTRAILERS = 32
IFF_RUNNING = 64
IFF_NOARP = 128
IFF_PROMISC = 256
IFF_ALLMULTI = 512
IFF_MASTER = 1_024
IFF_SLAVE = 2_048
IFF_MULTICAST = 4_096
IFF_PORTSEL = 8_192
IFF_AUTOMEDIA = 16_384
IFF_DYNAMIC = 32_768
IFF_LOWER_UP = 65_536
IFF_DORMANT = 131_072
IFF_ECHO = 262_144
Trait Implementations§
source§impl Clone for net_device_flags
impl Clone for net_device_flags
source§fn clone(&self) -> net_device_flags
fn clone(&self) -> net_device_flags
Returns a copy 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 net_device_flags
impl Debug for net_device_flags
source§impl Hash for net_device_flags
impl Hash for net_device_flags
source§impl PartialEq for net_device_flags
impl PartialEq for net_device_flags
source§fn eq(&self, other: &net_device_flags) -> bool
fn eq(&self, other: &net_device_flags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for net_device_flags
impl Eq for net_device_flags
impl StructuralPartialEq for net_device_flags
Auto Trait Implementations§
impl Freeze for net_device_flags
impl RefUnwindSafe for net_device_flags
impl Send for net_device_flags
impl Sync for net_device_flags
impl Unpin for net_device_flags
impl UnwindSafe for net_device_flags
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