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 AsBytes for KeyInformationwhere
u16: AsBytes,
HasPadding<KeyInformation, { _ }>: ShouldBe<{ _ }>,
impl AsBytes for KeyInformationwhere u16: AsBytes, HasPadding<KeyInformation, { _ }>: ShouldBe<{ _ }>,
§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 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 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.source§impl PartialEq<KeyInformation> for KeyInformation
impl PartialEq<KeyInformation> 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 ==
.