Struct eapol::KeyFrameRx
source · pub struct KeyFrameRx<B: ByteSlice> {
pub eapol_fields: Ref<B, EapolFields>,
pub key_frame_fields: Ref<B, KeyFrameFields>,
pub key_mic: B,
pub key_data: B,
}
Fields§
§eapol_fields: Ref<B, EapolFields>
§key_frame_fields: Ref<B, KeyFrameFields>
§key_mic: B
§key_data: B
Implementations§
source§impl<B: ByteSlice> KeyFrameRx<B>
impl<B: ByteSlice> KeyFrameRx<B>
pub fn parse(mic_len: usize, eapol_pdu_buf: B) -> Result<Self, Error>
sourcepub fn write_into<A: Appendable>(
&self,
clear_mic: bool,
buf: &mut A
) -> Result<(), Error>
pub fn write_into<A: Appendable>( &self, clear_mic: bool, buf: &mut A ) -> Result<(), Error>
Populates buf with the underlying bytes of this keyframe.
If clear_mic is true, the MIC field will be populated with zeroes. This should be used when recalculating the frame MIC during a key exchange.
Trait Implementations§
Auto Trait Implementations§
impl<B> RefUnwindSafe for KeyFrameRx<B>where
B: RefUnwindSafe,
impl<B> Send for KeyFrameRx<B>where
B: Send,
impl<B> Sync for KeyFrameRx<B>where
B: Sync,
impl<B> Unpin for KeyFrameRx<B>where
B: Unpin,
impl<B> UnwindSafe for KeyFrameRx<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