[][src]Struct radiotap::field::Rate

pub struct Rate(_);

Tx/Rx legacy data rate.

Other rate fields: MCS, VHT

The raw value's unit is 500 Kbps. Use the to_mbps function to get the rate in megabits per second.

Implementations

impl Rate[src]

pub const fn into_inner(self) -> u8[src]

Consumes this field and returns the underlying value.

impl Rate[src]

pub fn to_mbps(&self) -> f32[src]

Returns the data rate in megabits per second.

Trait Implementations

impl Clone for Rate[src]

impl Copy for Rate[src]

impl Debug for Rate[src]

impl Eq for Rate[src]

impl From<u8> for Rate[src]

impl FromBytes for Rate[src]

type Error = Error

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

impl Hash for Rate[src]

impl Ord for Rate[src]

impl PartialEq<Rate> for Rate[src]

impl PartialOrd<Rate> for Rate[src]

impl StructuralEq for Rate[src]

impl StructuralPartialEq for Rate[src]

Auto Trait Implementations

impl RefUnwindSafe for Rate

impl Send for Rate

impl Sync for Rate

impl Unpin for Rate

impl UnwindSafe for Rate

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.