pub struct FourwayHandshakeFrame<B: ByteSlice>(/* 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: ByteSlice> FourwayHandshakeFrame<B>
impl<B: ByteSlice> 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: ByteSlice> Deref for FourwayHandshakeFrame<B>
impl<B: ByteSlice> Deref for FourwayHandshakeFrame<B>
§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