Struct fidl_fuchsia_wlan_common::WlanKeyConfig
source · 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.
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
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 WlanKeyConfig
impl Debug for WlanKeyConfig
source§impl Decode<WlanKeyConfig> for WlanKeyConfig
impl Decode<WlanKeyConfig> for WlanKeyConfig
source§impl Default for WlanKeyConfig
impl Default for WlanKeyConfig
source§fn default() -> WlanKeyConfig
fn default() -> WlanKeyConfig
Returns the “default value” for a type. Read more
source§impl Encode<WlanKeyConfig> for &WlanKeyConfig
impl Encode<WlanKeyConfig> for &WlanKeyConfig
source§impl PartialEq for WlanKeyConfig
impl PartialEq for WlanKeyConfig
source§fn eq(&self, other: &WlanKeyConfig) -> bool
fn eq(&self, other: &WlanKeyConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TypeMarker for WlanKeyConfig
impl TypeMarker for WlanKeyConfig
§type Owned = WlanKeyConfig
type Owned = WlanKeyConfig
The owned Rust type which this FIDL type decodes into.
source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
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
Returns true if the memory layout of
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
§type Borrowed<'a> = &'a WlanKeyConfig
type Borrowed<'a> = &'a WlanKeyConfig
The Rust type to use for encoding. This is a particular
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
The marker type to use when the body is at the top-level.
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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
Mutably borrows from an owned value. Read more