[][src]Struct radiotap::field::mcs::Mcs

pub struct Mcs { /* fields omitted */ }

The MCS information.

The IEEE 802.11n data rate index.

Other rate fields: Rate, VHT

Implementations

impl Mcs[src]

pub fn bandwidth(&self) -> Option<Bandwidth>[src]

Returns the bandwidth.

pub fn index(&self) -> Option<u8>[src]

Returns the MCS index.

pub fn guard_interval(&self) -> Option<GuardInterval>[src]

Returns the guard interval.

pub fn format(&self) -> Option<Format>[src]

Returns the HT format.

pub fn fec(&self) -> Option<Fec>[src]

Returns the FEC type.

pub fn stbc(&self) -> Option<u8>[src]

Returns the number of STBCs.

pub fn ness(&self) -> Option<u8>[src]

Return the number of extension spatial streams.

pub fn nss(&self) -> Option<u8>[src]

Returns the number of spatial streams (1 - 4) calculated using the MCS index.

pub fn to_mbps(&self) -> Option<Result<f32, InvalidDatarate>>[src]

Returns the data rate in megabits per second.

pub const fn known(&self) -> Known[src]

Returns the raw known information.

pub const fn flags(&self) -> Flags[src]

Returns the raw flags.

Trait Implementations

impl Clone for Mcs[src]

impl Copy for Mcs[src]

impl Debug for Mcs[src]

impl Eq for Mcs[src]

impl FromBytes for Mcs[src]

type Error = Error

The associated error which can be returned from parsing. Read more

impl PartialEq<Mcs> for Mcs[src]

impl StructuralEq for Mcs[src]

impl StructuralPartialEq for Mcs[src]

Auto Trait Implementations

impl RefUnwindSafe for Mcs

impl Send for Mcs

impl Sync for Mcs

impl Unpin for Mcs

impl UnwindSafe for Mcs

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.