pub struct Dot11BlockAckReq {
pub offset: usize,
}Expand description
802.11 Block Ack Request (BAR) frame body.
After the 802.11 header (Addr1 + Addr2), contains:
- BAR Control (2 bytes, little-endian)
- Starting Sequence Control (2 bytes, little-endian)
Fields§
§offset: usizeImplementations§
Source§impl Dot11BlockAckReq
impl Dot11BlockAckReq
pub fn new(offset: usize) -> Self
Sourcepub fn bar_control(&self, buf: &[u8]) -> Result<u16, FieldError>
pub fn bar_control(&self, buf: &[u8]) -> Result<u16, FieldError>
BAR Control field (little-endian u16).
Bits 0: BAR Ack Policy Bits 1-3: BAR Type Bits 4-11: Reserved Bits 12-15: TID_INFO
Sourcepub fn ack_policy(&self, buf: &[u8]) -> Result<bool, FieldError>
pub fn ack_policy(&self, buf: &[u8]) -> Result<bool, FieldError>
BAR Ack Policy (bit 0 of BAR Control).
Sourcepub fn bar_type(&self, buf: &[u8]) -> Result<u8, FieldError>
pub fn bar_type(&self, buf: &[u8]) -> Result<u8, FieldError>
BAR Type (bits 1-3 of BAR Control).
Sourcepub fn tid_info(&self, buf: &[u8]) -> Result<u8, FieldError>
pub fn tid_info(&self, buf: &[u8]) -> Result<u8, FieldError>
TID Info (bits 12-15 of BAR Control).
Sourcepub fn start_seq_ctrl(&self, buf: &[u8]) -> Result<u16, FieldError>
pub fn start_seq_ctrl(&self, buf: &[u8]) -> Result<u16, FieldError>
Starting Sequence Control (little-endian u16).
Sourcepub fn start_seq_num(&self, buf: &[u8]) -> Result<u16, FieldError>
pub fn start_seq_num(&self, buf: &[u8]) -> Result<u16, FieldError>
Starting sequence number (upper 12 bits of starting sequence control).
Sourcepub fn fragment_num(&self, buf: &[u8]) -> Result<u8, FieldError>
pub fn fragment_num(&self, buf: &[u8]) -> Result<u8, FieldError>
Fragment number (lower 4 bits of starting sequence control).
Sourcepub fn header_len(&self) -> usize
pub fn header_len(&self) -> usize
Header length.
Trait Implementations§
Source§impl Clone for Dot11BlockAckReq
impl Clone for Dot11BlockAckReq
Source§fn clone(&self) -> Dot11BlockAckReq
fn clone(&self) -> Dot11BlockAckReq
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Dot11BlockAckReq
impl RefUnwindSafe for Dot11BlockAckReq
impl Send for Dot11BlockAckReq
impl Sync for Dot11BlockAckReq
impl Unpin for Dot11BlockAckReq
impl UnsafeUnpin for Dot11BlockAckReq
impl UnwindSafe for Dot11BlockAckReq
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more