Struct eapol::KeyInformation
source · #[repr(C)]pub struct KeyInformation(pub u16);
Tuple Fields§
§0: u16
Implementations§
source§impl KeyInformation
impl KeyInformation
pub fn key_descriptor_version(&self) -> u16
pub fn set_key_descriptor_version(&mut self, value: u16)
pub fn with_key_descriptor_version(self, value: u16) -> Self
pub fn key_type_raw(&self) -> bool
pub fn set_key_type_raw(&mut self, value: bool)
pub fn with_key_type_raw(self, value: bool) -> Self
pub fn key_type(&self) -> KeyType
pub fn set_key_type(&mut self, value: KeyType)
pub fn with_key_type(self, value: KeyType) -> Self
pub fn legacy_wpa1_key_id(&self) -> u16
pub fn set_legacy_wpa1_key_id(&mut self, value: u16)
pub fn with_legacy_wpa1_key_id(self, value: u16) -> Self
pub fn install(&self) -> bool
pub fn set_install(&mut self, value: bool)
pub fn with_install(self, value: bool) -> Self
pub fn key_ack(&self) -> bool
pub fn set_key_ack(&mut self, value: bool)
pub fn with_key_ack(self, value: bool) -> Self
pub fn key_mic(&self) -> bool
pub fn set_key_mic(&mut self, value: bool)
pub fn with_key_mic(self, value: bool) -> Self
pub fn secure(&self) -> bool
pub fn set_secure(&mut self, value: bool)
pub fn with_secure(self, value: bool) -> Self
pub fn error(&self) -> bool
pub fn set_error(&mut self, value: bool)
pub fn with_error(self, value: bool) -> Self
pub fn request(&self) -> bool
pub fn set_request(&mut self, value: bool)
pub fn with_request(self, value: bool) -> Self
pub fn encrypted_key_data(&self) -> bool
pub fn set_encrypted_key_data(&mut self, value: bool)
pub fn with_encrypted_key_data(self, value: bool) -> Self
pub fn smk_message(&self) -> bool
pub fn set_smk_message(&mut self, value: bool)
pub fn with_smk_message(self, value: bool) -> Self
pub fn raw(&self) -> u16
Trait Implementations§
source§impl Clone for KeyInformation
impl Clone for KeyInformation
source§fn clone(&self) -> KeyInformation
fn clone(&self) -> KeyInformation
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 KeyInformation
impl Debug for KeyInformation
source§impl Default for KeyInformation
impl Default for KeyInformation
source§fn default() -> KeyInformation
fn default() -> KeyInformation
Returns the “default value” for a type. Read more
source§impl FromBytes for KeyInformationwhere
u16: FromBytes,
impl FromBytes for KeyInformationwhere
u16: 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 KeyInformationwhere
u16: FromZeros,
impl FromZeros for KeyInformationwhere
u16: FromZeros,
source§impl IntoBytes for KeyInformationwhere
u16: IntoBytes,
impl IntoBytes for KeyInformationwhere
u16: IntoBytes,
source§impl PartialEq for KeyInformation
impl PartialEq for KeyInformation
source§fn eq(&self, other: &KeyInformation) -> bool
fn eq(&self, other: &KeyInformation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for KeyInformation
Auto Trait Implementations§
impl RefUnwindSafe for KeyInformation
impl Send for KeyInformation
impl Sync for KeyInformation
impl Unpin for KeyInformation
impl UnwindSafe for KeyInformation
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