pub struct ManagementFrameBuilder { /* private fields */ }

Implementations§

source§

impl ManagementFrameBuilder

source

pub fn new_blank() -> Self

source

pub fn new_defaults() -> Self

source

pub fn build(&self) -> ManagementFrame<'_>

Trait Implementations§

source§

impl FragmentSequenceBuilderTrait for ManagementFrameBuilder

source§

const FRAGMENT_SEQUENCE_START: usize = 22usize

source§

const FRAGMENT_SEQUENCE_END: usize = _

source§

fn fragment_number(&mut self, fragment_number: u8)

Fragment Number
source§

fn sequence_number(&mut self, sequence_number: u16)

Sequence Number
source§

impl FrameBuilderTrait for ManagementFrameBuilder

source§

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

source§

fn bytes_mut(&mut self) -> &mut [u8]

source§

fn version(&mut self, version: FrameVersion)

source§

fn type_(&mut self, type_: FrameType)

source§

fn subtype(&mut self, subtype: FrameSubtype)

source§

fn to_ds(&mut self, to_ds: bool)

source§

fn from_ds(&mut self, from_ds: bool)

source§

fn ds_status(&mut self, ds_status: DSStatus)

source§

fn more_fragments(&mut self, more_fragments: bool)

source§

fn retry(&mut self, retry: bool)

source§

fn pwr_mgt(&mut self, pwr_mgt: bool)

source§

fn more_data(&mut self, more_data: bool)

source§

fn protected(&mut self, protected: bool)

source§

fn order(&mut self, order: bool)

source§

fn duration_or_id(&mut self, _duration_or_id: DurationID)

source§

fn addr1(&mut self, mac_address: MacAddress)

source§

fn receiver_address(&mut self, mac_address: MacAddress)

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

fn destination_address(&mut self, mac_address: MacAddress)

Destination Address Who the packet is destined for.
source§

impl ManagementFrameBuilderTrait for ManagementFrameBuilder

source§

fn addr2(&mut self, mac_address: MacAddress)

source§

fn addr3(&mut self, mac_address: MacAddress)

source§

fn transmitter_address(&mut self, mac_address: MacAddress)

Transmitter Address Who this packet came from wirelessly.
source§

fn source_address(&mut self, mac_address: MacAddress)

Source Address Who the packet came from.
source§

fn bssid_address(&mut self, mac_address: MacAddress)

source§

fn station_address(&mut self, _mac_address: MacAddress)

Auto Trait Implementations§

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.