pub enum MgmtBody<B: SplitByteSlice> {
Beacon {
bcn_hdr: Ref<B, BeaconHdr>,
elements: B,
},
ProbeReq(ProbeReqFrame<B>),
ProbeResp {
probe_resp_hdr: Ref<B, ProbeRespHdr>,
elements: B,
},
Authentication(AuthFrame<B>),
AssociationReq(AssocReqFrame<B>),
AssociationResp(AssocRespFrame<B>),
Deauthentication {
deauth_hdr: Ref<B, DeauthHdr>,
elements: B,
},
Disassociation {
disassoc_hdr: Ref<B, DisassocHdr>,
elements: B,
},
Action(ActionFrame<B>),
Unsupported {
subtype: MgmtSubtype,
},
}Variants§
Beacon
ProbeReq(ProbeReqFrame<B>)
ProbeResp
Authentication(AuthFrame<B>)
AssociationReq(AssocReqFrame<B>)
AssociationResp(AssocRespFrame<B>)
Deauthentication
Disassociation
Action(ActionFrame<B>)
Unsupported
Fields
§
subtype: MgmtSubtypeImplementations§
Source§impl<B: SplitByteSlice> MgmtBody<B>
impl<B: SplitByteSlice> MgmtBody<B>
pub fn parse(subtype: MgmtSubtype, bytes: B) -> Option<Self>
Trait Implementations§
Source§impl<B> From<ActionFrame<B>> for MgmtBody<B>where
B: SplitByteSlice,
impl<B> From<ActionFrame<B>> for MgmtBody<B>where
B: SplitByteSlice,
Source§fn from(frame: ActionFrame<B>) -> Self
fn from(frame: ActionFrame<B>) -> Self
Converts to this type from the input type.
Source§impl<B> From<AssocReqFrame<B>> for MgmtBody<B>where
B: SplitByteSlice,
impl<B> From<AssocReqFrame<B>> for MgmtBody<B>where
B: SplitByteSlice,
Source§fn from(frame: AssocReqFrame<B>) -> Self
fn from(frame: AssocReqFrame<B>) -> Self
Converts to this type from the input type.
Source§impl<B> From<AssocRespFrame<B>> for MgmtBody<B>where
B: SplitByteSlice,
impl<B> From<AssocRespFrame<B>> for MgmtBody<B>where
B: SplitByteSlice,
Source§fn from(frame: AssocRespFrame<B>) -> Self
fn from(frame: AssocRespFrame<B>) -> Self
Converts to this type from the input type.
Source§impl<B> From<ProbeReqFrame<B>> for MgmtBody<B>where
B: SplitByteSlice,
impl<B> From<ProbeReqFrame<B>> for MgmtBody<B>where
B: SplitByteSlice,
Source§fn from(frame: ProbeReqFrame<B>) -> Self
fn from(frame: ProbeReqFrame<B>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<B> Freeze for MgmtBody<B>where
Ref<B, BeaconHdr>: Freeze,
B: Freeze,
ProbeReqFrame<B>: Freeze,
Ref<B, ProbeRespHdr>: Freeze,
AuthFrame<B>: Freeze,
AssocReqFrame<B>: Freeze,
AssocRespFrame<B>: Freeze,
Ref<B, DeauthHdr>: Freeze,
Ref<B, DisassocHdr>: Freeze,
ActionFrame<B>: Freeze,
impl<B> RefUnwindSafe for MgmtBody<B>where
Ref<B, BeaconHdr>: RefUnwindSafe,
B: RefUnwindSafe,
ProbeReqFrame<B>: RefUnwindSafe,
Ref<B, ProbeRespHdr>: RefUnwindSafe,
AuthFrame<B>: RefUnwindSafe,
AssocReqFrame<B>: RefUnwindSafe,
AssocRespFrame<B>: RefUnwindSafe,
Ref<B, DeauthHdr>: RefUnwindSafe,
Ref<B, DisassocHdr>: RefUnwindSafe,
ActionFrame<B>: RefUnwindSafe,
impl<B> Send for MgmtBody<B>where
Ref<B, BeaconHdr>: Send,
B: Send,
ProbeReqFrame<B>: Send,
Ref<B, ProbeRespHdr>: Send,
AuthFrame<B>: Send,
AssocReqFrame<B>: Send,
AssocRespFrame<B>: Send,
Ref<B, DeauthHdr>: Send,
Ref<B, DisassocHdr>: Send,
ActionFrame<B>: Send,
impl<B> Sync for MgmtBody<B>where
Ref<B, BeaconHdr>: Sync,
B: Sync,
ProbeReqFrame<B>: Sync,
Ref<B, ProbeRespHdr>: Sync,
AuthFrame<B>: Sync,
AssocReqFrame<B>: Sync,
AssocRespFrame<B>: Sync,
Ref<B, DeauthHdr>: Sync,
Ref<B, DisassocHdr>: Sync,
ActionFrame<B>: Sync,
impl<B> Unpin for MgmtBody<B>where
Ref<B, BeaconHdr>: Unpin,
B: Unpin,
ProbeReqFrame<B>: Unpin,
Ref<B, ProbeRespHdr>: Unpin,
AuthFrame<B>: Unpin,
AssocReqFrame<B>: Unpin,
AssocRespFrame<B>: Unpin,
Ref<B, DeauthHdr>: Unpin,
Ref<B, DisassocHdr>: Unpin,
ActionFrame<B>: Unpin,
impl<B> UnsafeUnpin for MgmtBody<B>where
Ref<B, BeaconHdr>: UnsafeUnpin,
B: UnsafeUnpin,
ProbeReqFrame<B>: UnsafeUnpin,
Ref<B, ProbeRespHdr>: UnsafeUnpin,
AuthFrame<B>: UnsafeUnpin,
AssocReqFrame<B>: UnsafeUnpin,
AssocRespFrame<B>: UnsafeUnpin,
Ref<B, DeauthHdr>: UnsafeUnpin,
Ref<B, DisassocHdr>: UnsafeUnpin,
ActionFrame<B>: UnsafeUnpin,
impl<B> UnwindSafe for MgmtBody<B>where
Ref<B, BeaconHdr>: UnwindSafe,
B: UnwindSafe,
ProbeReqFrame<B>: UnwindSafe,
Ref<B, ProbeRespHdr>: UnwindSafe,
AuthFrame<B>: UnwindSafe,
AssocReqFrame<B>: UnwindSafe,
AssocRespFrame<B>: UnwindSafe,
Ref<B, DeauthHdr>: UnwindSafe,
Ref<B, DisassocHdr>: UnwindSafe,
ActionFrame<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