Struct wlan_common::mac::AmsduSubframe
source · pub struct AmsduSubframe<B> {
pub hdr: Ref<B, AmsduSubframeHdr>,
pub body: B,
}
Fields§
§hdr: Ref<B, AmsduSubframeHdr>
§body: B
Implementations§
source§impl<B: ByteSlice> AmsduSubframe<B>
impl<B: ByteSlice> AmsduSubframe<B>
Parse an A-MSDU subframe from the byte stream and advance the cursor in the BufferReader
if
successful. Parsing is only successful if the byte stream starts with a valid subframe.
TODO(https://fxbug.dev/42104386): The received AMSDU should not be greater than max_amsdu_len
, specified in
HtCapabilities IE of Association. Warn or discard if violated.
pub fn parse(buffer_reader: &mut BufferReader<B>) -> Option<Self>
Auto Trait Implementations§
impl<B> Freeze for AmsduSubframe<B>where
B: Freeze,
impl<B> RefUnwindSafe for AmsduSubframe<B>where
B: RefUnwindSafe,
impl<B> Send for AmsduSubframe<B>where
B: Send,
impl<B> Sync for AmsduSubframe<B>where
B: Sync,
impl<B> Unpin for AmsduSubframe<B>where
B: Unpin,
impl<B> UnwindSafe for AmsduSubframe<B>where
B: UnwindSafe,
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