[][src]Enum radiotap::field::Type

#[non_exhaustive]pub enum Type {
    Tsft,
    Flags,
    Rate,
    Channel,
    Fhss,
    AntennaSignal,
    AntennaNoise,
    LockQuality,
    TxAttenuation,
    TxAttenuationDb,
    TxPower,
    Antenna,
    AntennaSignalDb,
    AntennaNoiseDb,
    RxFlags,
    TxFlags,
    RtsRetries,
    DataRetries,
    XChannel,
    Mcs,
    AmpduStatus,
    Vht,
    Timestamp,
    He,
    HeMu,
    HeMuUser,
    ZeroLenPsdu,
    LSig,
}

The type of radiotap field.

Each variant corresponds to unique field in the radiotap capture. Kind is implemented to describe the alignment and size of each field, so that the iterator knows how to handle it.

Not all of these types are parsed by this crate. The ones that have a corresponding field have the identical name in field module.

Variants (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.
Tsft
Flags
Rate
Channel
Fhss
AntennaSignal
AntennaNoise
LockQuality
TxAttenuation
TxAttenuationDb
TxPower
Antenna
AntennaSignalDb
AntennaNoiseDb
RxFlags
TxFlags
RtsRetries
DataRetries
XChannel
Mcs
AmpduStatus
Vht
Timestamp
He
HeMu
HeMuUser
ZeroLenPsdu
LSig

Implementations

impl Type[src]

pub fn from_bit(bit: u32) -> Option<Self>[src]

Construct a new type from a bit. None if unknown.

pub fn bit(&self) -> u32[src]

Returns the present bit for the type.

Trait Implementations

impl Clone for Type[src]

impl Copy for Type[src]

impl Debug for Type[src]

impl Eq for Type[src]

impl Kind for Type[src]

fn align(&self) -> usize[src]

Returns the alignment of the field.

fn size(&self) -> usize[src]

Returns the size of the field.

impl PartialEq<Type> for Type[src]

impl StructuralEq for Type[src]

impl StructuralPartialEq for Type[src]

Auto Trait Implementations

impl RefUnwindSafe for Type

impl Send for Type

impl Sync for Type

impl Unpin for Type

impl UnwindSafe for Type

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.