Struct libwifi::frame::BlockAckRequest
source · [−]pub struct BlockAckRequest {
pub frame_control: FrameControl,
pub duration: [u8; 2],
pub source: MacAddress,
pub destination: MacAddress,
pub policy: bool,
pub mode: BlockAckMode,
pub requested_tids: Vec<(u8, SequenceControl)>,
}
Expand description
Used in a BlockAck session to acknowlede sent packets.
Once the BlockAck session is established the AP and the requesting station can partake in a contention free burst within the scope of the session. After the frame burst is complete and the acknowledgment has been requested, this frame is sent to acknowledge any received frames.
Fields
frame_control: FrameControl
duration: [u8; 2]
source: MacAddress
destination: MacAddress
policy: bool
The acknowledgment policy flag.
true
: No immediate acknowledgment is required.
false
: Immediate acknowledgment is required.
mode: BlockAckMode
requested_tids: Vec<(u8, SequenceControl)>
The TID’s and the respective sequence control bytes, for which the BlockAck has been requested.
Trait Implementations
sourceimpl Addresses for BlockAckRequest
impl Addresses for BlockAckRequest
sourcefn src(&self) -> Option<&MacAddress>
fn src(&self) -> Option<&MacAddress>
Returns the sender of the Frame. This isn’t always send in every frame (e.g. CTS). Read more
sourcefn dest(&self) -> &MacAddress
fn dest(&self) -> &MacAddress
Returns the destination of the Frame. This should always be present. Read more
sourcefn bssid(&self) -> Option<&MacAddress>
fn bssid(&self) -> Option<&MacAddress>
This isn’t always send in every frame (e.g. RTS).
sourceimpl Clone for BlockAckRequest
impl Clone for BlockAckRequest
sourcefn clone(&self) -> BlockAckRequest
fn clone(&self) -> BlockAckRequest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for BlockAckRequest
impl Debug for BlockAckRequest
sourceimpl From<BlockAckRequest> for Frame
impl From<BlockAckRequest> for Frame
sourcefn from(v: BlockAckRequest) -> Frame
fn from(v: BlockAckRequest) -> Frame
Converts to this type from the input type.
sourceimpl TryInto<BlockAckRequest> for Frame
impl TryInto<BlockAckRequest> for Frame
sourcefn try_into(
self
) -> Result<BlockAckRequest, <Self as TryInto<BlockAckRequest>>::Error>
fn try_into(
self
) -> Result<BlockAckRequest, <Self as TryInto<BlockAckRequest>>::Error>
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for BlockAckRequest
impl Send for BlockAckRequest
impl Sync for BlockAckRequest
impl Unpin for BlockAckRequest
impl UnwindSafe for BlockAckRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more