Struct wlan_common::mac::MgmtFrame
source · pub struct MgmtFrame<B> {
pub mgmt_hdr: Ref<B, MgmtHdr>,
pub ht_ctrl: Option<UnalignedView<B, HtControl>>,
pub body: B,
}
Fields§
§mgmt_hdr: Ref<B, MgmtHdr>
§ht_ctrl: Option<UnalignedView<B, HtControl>>
§body: B
Implementations§
source§impl<B> MgmtFrame<B>where
B: SplitByteSlice,
impl<B> MgmtFrame<B>where
B: SplitByteSlice,
pub fn parse( reader: impl IntoBufferReader<B>, is_body_aligned: bool, ) -> Option<Self>
pub fn try_into_mgmt_body(self) -> (Ref<B, MgmtHdr>, Option<MgmtBody<B>>)
pub fn into_ies(self) -> (Ref<B, MgmtHdr>, impl Iterator<Item = (Id, B)>)
pub fn ies(&self) -> impl '_ + Iterator<Item = (Id, &B::Target)>
pub fn frame_ctrl(&self) -> FrameControl
pub fn mgmt_subtype(&self) -> MgmtSubtype
Trait Implementations§
Auto Trait Implementations§
impl<B> Freeze for MgmtFrame<B>where
B: Freeze,
impl<B> RefUnwindSafe for MgmtFrame<B>where
B: RefUnwindSafe,
impl<B> Send for MgmtFrame<B>where
B: Send,
impl<B> Sync for MgmtFrame<B>where
B: Sync,
impl<B> Unpin for MgmtFrame<B>where
B: Unpin,
impl<B> UnwindSafe for MgmtFrame<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