pub struct FourwayHandshakeFrame<B: SplitByteSlice>(/* private fields */);
Expand description
Struct which carries EAPOL key frames which comply with IEEE Std 802.11-2016, 12.7.2 and IEEE Std 802.11-2016, 12.7.6.
Implementations§
Source§impl<B: SplitByteSlice> FourwayHandshakeFrame<B>
impl<B: SplitByteSlice> FourwayHandshakeFrame<B>
pub fn from_verified( frame: Dot11VerifiedKeyFrame<B>, role: Role, nonce: Option<&[u8]>, ) -> Result<FourwayHandshakeFrame<B>, Error>
pub fn get(self) -> Dot11VerifiedKeyFrame<B>
Methods from Deref<Target = Dot11VerifiedKeyFrame<B>>§
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§
Source§impl<B: SplitByteSlice> Deref for FourwayHandshakeFrame<B>
impl<B: SplitByteSlice> Deref for FourwayHandshakeFrame<B>
Source§type Target = Dot11VerifiedKeyFrame<B>
type Target = Dot11VerifiedKeyFrame<B>
The resulting type after dereferencing.
Source§fn deref(&self) -> &Dot11VerifiedKeyFrame<B>
fn deref(&self) -> &Dot11VerifiedKeyFrame<B>
Dereferences the value.
Auto Trait Implementations§
impl<B> Freeze for FourwayHandshakeFrame<B>where
B: Freeze,
impl<B> RefUnwindSafe for FourwayHandshakeFrame<B>where
B: RefUnwindSafe,
impl<B> Send for FourwayHandshakeFrame<B>where
B: Send,
impl<B> Sync for FourwayHandshakeFrame<B>where
B: Sync,
impl<B> Unpin for FourwayHandshakeFrame<B>where
B: Unpin,
impl<B> UnwindSafe for FourwayHandshakeFrame<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