pub enum MacFrame<B> {
    Mgmt(MgmtFrame<B>),
    Data(DataFrame<B>),
    Ctrl(CtrlFrame<B>),
    Unsupported {
        frame_ctrl: FrameControl,
    },
}Variants§
Mgmt(MgmtFrame<B>)
Data(DataFrame<B>)
Ctrl(CtrlFrame<B>)
Unsupported
Fields
§
frame_ctrl: FrameControlImplementations§
Source§impl<B: SplitByteSlice> MacFrame<B>
 
impl<B: SplitByteSlice> MacFrame<B>
Sourcepub fn parse(bytes: B, is_body_aligned: bool) -> Option<MacFrame<B>>
 
pub fn parse(bytes: B, is_body_aligned: bool) -> Option<MacFrame<B>>
Parses a MAC frame from bytes.
If is_body_aligned is true, then the frame body must be aligned to four bytes.
pub fn frame_ctrl(&self) -> FrameControl
Trait Implementations§
Source§impl<B: SplitByteSlice> Debug for MacFrame<B>
 
impl<B: SplitByteSlice> Debug for MacFrame<B>
Source§impl<B: SplitByteSlice> From<&MacFrame<B>> for FrameClass
Converts a MacFrame into a FrameClass.
 
impl<B: SplitByteSlice> From<&MacFrame<B>> for FrameClass
Converts a MacFrame into a FrameClass.
Source§fn from(mac_frame: &MacFrame<B>) -> FrameClass
 
fn from(mac_frame: &MacFrame<B>) -> FrameClass
Converts to this type from the input type.
Auto Trait Implementations§
impl<B> Freeze for MacFrame<B>where
    B: Freeze,
impl<B> RefUnwindSafe for MacFrame<B>where
    B: RefUnwindSafe,
impl<B> Send for MacFrame<B>where
    B: Send,
impl<B> Sync for MacFrame<B>where
    B: Sync,
impl<B> Unpin for MacFrame<B>where
    B: Unpin,
impl<B> UnwindSafe for MacFrame<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