pub enum Dot11VerifiedKeyFrame<B: SplitByteSlice> {
WithUnverifiedMic(WithUnverifiedMic<B>),
WithoutMic(KeyFrameRx<B>),
}
Expand description
EAPOL Key frames carried in this struct comply with IEEE Std 802.11-2016, 12.7.2. Neither the Key Frame’s MIC nor its key data were verified at this point.
Variants§
WithUnverifiedMic(WithUnverifiedMic<B>)
WithoutMic(KeyFrameRx<B>)
Implementations§
Source§impl<B: SplitByteSlice> Dot11VerifiedKeyFrame<B>
impl<B: SplitByteSlice> Dot11VerifiedKeyFrame<B>
pub fn from_frame( frame: KeyFrameRx<B>, role: &Role, protection: &NegotiatedProtection, key_replay_counter: u64, ) -> Result<Dot11VerifiedKeyFrame<B>, Error>
Sourcepub fn unsafe_get_raw(&self) -> &KeyFrameRx<B>
pub fn unsafe_get_raw(&self) -> &KeyFrameRx<B>
CAUTION: Returns the underlying frame without verifying its MIC or encrypted key data if either one is present. Only use this if you know what you are doing.
Trait Implementations§
Auto Trait Implementations§
impl<B> Freeze for Dot11VerifiedKeyFrame<B>where
B: Freeze,
impl<B> RefUnwindSafe for Dot11VerifiedKeyFrame<B>where
B: RefUnwindSafe,
impl<B> Send for Dot11VerifiedKeyFrame<B>where
B: Send,
impl<B> Sync for Dot11VerifiedKeyFrame<B>where
B: Sync,
impl<B> Unpin for Dot11VerifiedKeyFrame<B>where
B: Unpin,
impl<B> UnwindSafe for Dot11VerifiedKeyFrame<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