pub struct WlanKeyConfig {
pub protection: Option<WlanProtection>,
pub cipher_oui: Option<[u8; 3]>,
pub cipher_type: Option<CipherSuiteType>,
pub key_type: Option<WlanKeyType>,
pub peer_addr: Option<[u8; 6]>,
pub key_idx: Option<u8>,
pub key: Option<Vec<u8>>,
pub rsc: Option<u64>,
/* private fields */
}
Fields§
§protection: Option<WlanProtection>
Which path to protect: None, TX, RX, or TX and RX.
cipher_oui: Option<[u8; 3]>
IEEE Cipher suite selector. See IEEE Std 802.11-2016, 9.4.2.25.2, Table 9-131 Optional. If not specified, it’s assumed that this is the IEEE OUI.
cipher_type: Option<CipherSuiteType>
The cipher type. Required.
key_type: Option<WlanKeyType>
Whether this key is a pairwise, group or peer key. Required.
peer_addr: Option<[u8; 6]>
The peer MAC address for pairwise and peer keys. For group keys this value is always the broadcast address. Required.
key_idx: Option<u8>
Index for rotating keys, e.g. group keys. This value is always 0 for key types which aren’t rotating, e.g. pairwise keys. Required.
TODO(https://fxbug.dev/301104836): This is a uint8, but SetKeyDescriptor in MLME FIDL and DeleteKeysDescriptor in Fullmac FIDL use a uint16 for key_id/key_idx. We should consider making all these use the same type.
key: Option<Vec<u8>>
They key’s actual bytes. Required.
rsc: Option<u64>
Receive Sequence Counter for group keys only. In all other cases the RSC will be 0. Optional.
Trait Implementations§
Source§impl Clone for WlanKeyConfig
impl Clone for WlanKeyConfig
Source§fn clone(&self) -> WlanKeyConfig
fn clone(&self) -> WlanKeyConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for WlanKeyConfig
impl Debug for WlanKeyConfig
Source§impl<D: ResourceDialect> Decode<WlanKeyConfig, D> for WlanKeyConfig
impl<D: ResourceDialect> Decode<WlanKeyConfig, D> for WlanKeyConfig
Source§impl Default for WlanKeyConfig
impl Default for WlanKeyConfig
Source§fn default() -> WlanKeyConfig
fn default() -> WlanKeyConfig
Source§impl<D: ResourceDialect> Encode<WlanKeyConfig, D> for &WlanKeyConfig
impl<D: ResourceDialect> Encode<WlanKeyConfig, D> for &WlanKeyConfig
Source§impl PartialEq for WlanKeyConfig
impl PartialEq for WlanKeyConfig
Source§impl TypeMarker for WlanKeyConfig
impl TypeMarker for WlanKeyConfig
Source§type Owned = WlanKeyConfig
type Owned = WlanKeyConfig
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for WlanKeyConfig
impl ValueTypeMarker for WlanKeyConfig
Source§type Borrowed<'a> = &'a WlanKeyConfig
type Borrowed<'a> = &'a WlanKeyConfig
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for WlanKeyConfig
impl StructuralPartialEq for WlanKeyConfig
Auto Trait Implementations§
impl Freeze for WlanKeyConfig
impl RefUnwindSafe for WlanKeyConfig
impl Send for WlanKeyConfig
impl Sync for WlanKeyConfig
impl Unpin for WlanKeyConfig
impl UnwindSafe for WlanKeyConfig
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)