Struct eapol::KeyFrameFields
source · #[repr(C, packed)]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 AsBytes for KeyFrameFieldswhere
KeyDescriptor: AsBytes,
BigEndianU16: AsBytes,
BigEndianU64: AsBytes,
[u8; 32]: AsBytes,
[u8; 16]: AsBytes,
[u8; 8]: AsBytes,
impl AsBytes for KeyFrameFieldswhere KeyDescriptor: AsBytes, BigEndianU16: AsBytes, BigEndianU64: AsBytes, [u8; 32]: AsBytes, [u8; 16]: AsBytes, [u8; 8]: AsBytes,
§fn as_bytes_mut(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_bytes_mut(&mut self) -> &mut [u8] ⓘwhere Self: FromBytes,
Gets the bytes of this value mutably. Read more
§fn write_to_prefix<B>(&self, bytes: B) -> Option<()>where
B: ByteSliceMut,
fn write_to_prefix<B>(&self, bytes: B) -> Option<()>where B: ByteSliceMut,
§fn write_to_suffix<B>(&self, bytes: B) -> Option<()>where
B: ByteSliceMut,
fn write_to_suffix<B>(&self, bytes: B) -> Option<()>where B: ByteSliceMut,
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 read_from_prefix<B>(bytes: B) -> Option<Self>where
B: ByteSlice,
Self: Sized,
fn read_from_prefix<B>(bytes: B) -> Option<Self>where B: ByteSlice, Self: Sized,
§fn read_from_suffix<B>(bytes: B) -> Option<Self>where
B: ByteSlice,
Self: Sized,
fn read_from_suffix<B>(bytes: B) -> Option<Self>where B: ByteSlice, Self: Sized,
§fn new_zeroed() -> Selfwhere
Self: Sized,
fn new_zeroed() -> Selfwhere Self: Sized,
Creates an instance of
Self
from zeroed bytes.