Struct eapol::KeyFrameFields
source · #[repr(C, packed(1))]pub struct KeyFrameFields {
pub descriptor_type: KeyDescriptor,
pub key_len: BigEndianU16,
pub key_replay_counter: BigEndianU64,
pub key_nonce: [u8; 32],
pub key_iv: [u8; 16],
pub key_rsc: BigEndianU64,
/* private fields */
}
Fields§
§descriptor_type: KeyDescriptor
§key_len: BigEndianU16
§key_replay_counter: BigEndianU64
§key_nonce: [u8; 32]
§key_iv: [u8; 16]
§key_rsc: BigEndianU64
Implementations§
source§impl KeyFrameFields
impl KeyFrameFields
pub fn new( descriptor_type: KeyDescriptor, key_info: KeyInformation, key_len: u16, key_replay_counter: u64, key_nonce: [u8; 32], key_iv: [u8; 16], key_rsc: u64 ) -> Self
pub fn key_info(&self) -> KeyInformation
pub fn set_key_info(&mut self, key_info: KeyInformation)
Trait Implementations§
source§impl Clone for KeyFrameFields
impl Clone for KeyFrameFields
source§fn clone(&self) -> KeyFrameFields
fn clone(&self) -> KeyFrameFields
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for KeyFrameFields
impl Debug for KeyFrameFields
source§impl Default for KeyFrameFields
impl Default for KeyFrameFields
source§fn default() -> KeyFrameFields
fn default() -> KeyFrameFields
Returns the “default value” for a type. Read more
source§impl FromBytes for KeyFrameFieldswhere
KeyDescriptor: FromBytes,
BigEndianU16: FromBytes,
BigEndianU64: FromBytes,
[u8; 32]: FromBytes,
[u8; 16]: FromBytes,
[u8; 8]: FromBytes,
impl FromBytes for KeyFrameFieldswhere
KeyDescriptor: FromBytes,
BigEndianU16: FromBytes,
BigEndianU64: FromBytes,
[u8; 32]: FromBytes,
[u8; 16]: FromBytes,
[u8; 8]: FromBytes,
§fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized + NoCell,
fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized + NoCell,
Interprets the prefix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized + NoCell,
fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized + NoCell,
Interprets the suffix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + IntoBytes + NoCell,
fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + IntoBytes + NoCell,
Interprets the prefix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + IntoBytes + NoCell,
fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + IntoBytes + NoCell,
Interprets the suffix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
source§impl FromZeros for KeyFrameFieldswhere
KeyDescriptor: FromZeros,
BigEndianU16: FromZeros,
BigEndianU64: FromZeros,
[u8; 32]: FromZeros,
[u8; 16]: FromZeros,
[u8; 8]: FromZeros,
impl FromZeros for KeyFrameFieldswhere
KeyDescriptor: FromZeros,
BigEndianU16: FromZeros,
BigEndianU64: FromZeros,
[u8; 32]: FromZeros,
[u8; 16]: FromZeros,
[u8; 8]: FromZeros,
source§impl IntoBytes for KeyFrameFieldswhere
KeyDescriptor: IntoBytes,
BigEndianU16: IntoBytes,
BigEndianU64: IntoBytes,
[u8; 32]: IntoBytes,
[u8; 16]: IntoBytes,
[u8; 8]: IntoBytes,
impl IntoBytes for KeyFrameFieldswhere
KeyDescriptor: IntoBytes,
BigEndianU16: IntoBytes,
BigEndianU64: IntoBytes,
[u8; 32]: IntoBytes,
[u8; 16]: IntoBytes,
[u8; 8]: IntoBytes,
impl Unaligned for KeyFrameFields
Auto Trait Implementations§
impl RefUnwindSafe for KeyFrameFields
impl Send for KeyFrameFields
impl Sync for KeyFrameFields
impl Unpin for KeyFrameFields
impl UnwindSafe for KeyFrameFields
Blanket Implementations§
source§impl<T> AsBytesExt for Twhere
T: IntoBytes + NoCell,
impl<T> AsBytesExt for Twhere
T: IntoBytes + NoCell,
source§fn as_bytes_ref(&self) -> Ref<&[u8], Self>
fn as_bytes_ref(&self) -> Ref<&[u8], Self>
Gets a byte slice reference from a reference to
Self
. Read moresource§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