pub enum MonitorFlags {
Invalid,
FcsFail,
PlcpFail,
Control,
OtherBss,
CookFrames,
Active,
UnrecognizedConst(u16),
}Expand description
Monitor mode configuration flags.
nl80211_mntr_flags enum from: https://github.com/torvalds/linux/blob/master/include/uapi/linux/nl80211.h
Variants§
Invalid
Attribute number 0 is reserved.
FcsFail
Pass frames with bad FCS.
PlcpFail
Pass frames with bad PLCP.
Control
Pass control frames.
OtherBss
Disable BSSID filtering.
CookFrames
Report frames after processing. Overrides all other flags.
Active
Use the configured MAC address and ACK incoming unicast packets.
UnrecognizedConst(u16)
Implementations§
Source§impl MonitorFlags
impl MonitorFlags
Sourcepub fn is_unrecognized(&self) -> bool
pub fn is_unrecognized(&self) -> bool
Check whether a given method is an unrecognized constant for the set of possible constants associated with the current type.
Trait Implementations§
Source§impl Clone for MonitorFlags
impl Clone for MonitorFlags
Source§fn clone(&self) -> MonitorFlags
fn clone(&self) -> MonitorFlags
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 MonitorFlags
impl Debug for MonitorFlags
Source§impl From<&MonitorFlags> for u16
impl From<&MonitorFlags> for u16
Source§fn from(enm: &MonitorFlags) -> Self
fn from(enm: &MonitorFlags) -> Self
Converts to this type from the input type.
Source§impl From<MonitorFlags> for u16
impl From<MonitorFlags> for u16
Source§fn from(enm: MonitorFlags) -> Self
fn from(enm: MonitorFlags) -> Self
Converts to this type from the input type.
Source§impl From<u16> for MonitorFlags
impl From<u16> for MonitorFlags
Source§impl FromBytes for MonitorFlags
impl FromBytes for MonitorFlags
Source§impl Hash for MonitorFlags
impl Hash for MonitorFlags
Source§impl Ord for MonitorFlags
impl Ord for MonitorFlags
Source§fn cmp(&self, other: &MonitorFlags) -> Ordering
fn cmp(&self, other: &MonitorFlags) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MonitorFlags
impl PartialEq for MonitorFlags
Source§impl PartialOrd for MonitorFlags
impl PartialOrd for MonitorFlags
Source§impl Size for MonitorFlags
impl Size for MonitorFlags
Source§fn unpadded_size(&self) -> usize
fn unpadded_size(&self) -> usize
Size of the unpadded data structure. This will usually
only be unaligned for variable length types like
strings or byte buffers.
Source§fn padded_size(&self) -> usize
fn padded_size(&self) -> usize
Get the size of the payload and align it to
the required netlink byte alignment.
Source§impl ToBytes for MonitorFlags
impl ToBytes for MonitorFlags
Source§impl TypeSize for MonitorFlags
impl TypeSize for MonitorFlags
impl Copy for MonitorFlags
impl Eq for MonitorFlags
impl NlAttrType for MonitorFlags
impl StructuralPartialEq for MonitorFlags
Auto Trait Implementations§
impl Freeze for MonitorFlags
impl RefUnwindSafe for MonitorFlags
impl Send for MonitorFlags
impl Sync for MonitorFlags
impl Unpin for MonitorFlags
impl UnwindSafe for MonitorFlags
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