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
    B: Freeze,
impl<B> RefUnwindSafe for MgmtBody<B>where
    B: RefUnwindSafe,
impl<B> Send for MgmtBody<B>where
    B: Send,
impl<B> Sync for MgmtBody<B>where
    B: Sync,
impl<B> Unpin for MgmtBody<B>where
    B: Unpin,
impl<B> UnwindSafe for MgmtBody<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