Struct ieee80211::Frame

source ·
pub struct Frame<'a> { /* private fields */ }

Implementations§

source§

impl<'a> Frame<'a>

source

pub fn new<T: Into<Cow<'a, [u8]>>>(bytes: T) -> Self

source

pub fn next_layer(&self) -> Option<FrameLayer<'_>>

Trait Implementations§

source§

impl FrameTrait for Frame<'_>

source§

fn bytes(&self) -> &[u8]

source§

fn version(&self) -> FrameVersion

source§

fn type_(&self) -> FrameType

Main IEEE 802.11 Frame Type
source§

fn subtype(&self) -> FrameSubtype

IEEE 802.11 Frame Subtype
source§

fn to_ds(&self) -> bool

to Distribution System
source§

fn from_ds(&self) -> bool

from Distribution System
source§

fn ds_status(&self) -> DSStatus

source§

fn more_fragments(&self) -> bool

0: This is the last fragment 1: More fragments follow
source§

fn retry(&self) -> bool

0: Frame is not being retransmitted 1: Frame is being retransmitted
source§

fn pwr_mgt(&self) -> bool

0: STA will stay up 1: STA will go to sleep
source§

fn more_data(&self) -> bool

0: No data buffered 1: Data is buffered for STA at AP
source§

fn protected(&self) -> bool

0: Data is not protected 1: Data is protected
source§

fn order(&self) -> bool

0: Not strictly ordered 1: Strictly ordered
source§

fn duration_or_id(&self) -> DurationID

Duration or Association Identifier
source§

fn addr1(&self) -> MacAddress

source§

fn receiver_address(&self) -> MacAddress

Receiver Address Who this packet is destined for wirelessly. Address 1
source§

fn destination_address(&self) -> Option<MacAddress>

Destination Address Who the packet is destined for.

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for Frame<'a>

§

impl<'a> Send for Frame<'a>

§

impl<'a> Sync for Frame<'a>

§

impl<'a> Unpin for Frame<'a>

§

impl<'a> UnwindSafe for Frame<'a>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.