pub struct TrafficIndicationMap(/* private fields */);
Expand description
Represents a complete (that is, not partial) traffic indication bitmap. Consists of 2008 bits (i.e. 251 bytes).
Implementations§
Source§impl TrafficIndicationMap
impl TrafficIndicationMap
pub fn new() -> Self
Sourcepub fn set_traffic_buffered(&mut self, aid: Aid, buffered: bool)
pub fn set_traffic_buffered(&mut self, aid: Aid, buffered: bool)
Sets a given AID to have buffered traffic (or not) in the traffic indication map.
There is no special handling for AID 0 (i.e. for group traffic), we do not set it as the TIM header will indicate it, as per IEEE Std 802.11-2016, 9.4.2.6: The bit numbered 0 in the traffic indication virtual bitmap need not be included in the Partial Virtual Bitmap field even if that bit is set.
Sourcepub fn make_partial_virtual_bitmap(&self) -> (u8, &[u8])
pub fn make_partial_virtual_bitmap(&self) -> (u8, &[u8])
Creates a view into TrafficIndicationMap suitable for use in a TIM IE.
Auto Trait Implementations§
impl Freeze for TrafficIndicationMap
impl RefUnwindSafe for TrafficIndicationMap
impl Send for TrafficIndicationMap
impl Sync for TrafficIndicationMap
impl Unpin for TrafficIndicationMap
impl UnwindSafe for TrafficIndicationMap
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