pub struct WlanSoftmacBandCapability {
pub band: Option<WlanBand>,
pub ht_caps: Option<HtCapabilities>,
pub vht_caps: Option<VhtCapabilities>,
pub basic_rates: Option<Vec<u8>>,
pub primary_channels: Option<Vec<ChannelNumber>>,
/* private fields */
}Expand description
Describes the capabilities of a SoftMAC on a particular band.
Fields§
§band: Option<WlanBand>Band to which the capabilities described by this datagram apply.
ht_caps: Option<HtCapabilities>Servers (i.e., drivers) should set ht_caps if the device supports HT
PHY mode or unset ht_caps if the device does not.
vht_caps: Option<VhtCapabilities>Servers (i.e., drivers) should set vht_caps if the device supports
VHT PHY mode or unset vht_caps if the device does not.
basic_rates: Option<Vec<u8>>Set of supported basic rates in units of 500 Kbit/s (as defined in IEEE Std 802.11-2016, 9.4.2.3), e.g., 0x02 represents 1 Mbps. This set represents all of the non-HT rates that the device supports for both transmitting and receiving.
primary_channels: Option<Vec<ChannelNumber>>Set of valid primary channels per regulatory information as determined by the device driver during iface creation. A primary channel refers to a channel on which APs may transmit beacon frames.
The client must use this set to determine the efficacy of subsequent requests to scan a subset of channels using the iface or to determine which primary channel to use when starting an AP.
Trait Implementations§
Source§impl Clone for WlanSoftmacBandCapability
impl Clone for WlanSoftmacBandCapability
Source§fn clone(&self) -> WlanSoftmacBandCapability
fn clone(&self) -> WlanSoftmacBandCapability
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WlanSoftmacBandCapability
impl Debug for WlanSoftmacBandCapability
Source§impl<D> Decode<WlanSoftmacBandCapability, D> for WlanSoftmacBandCapabilitywhere
D: ResourceDialect,
impl<D> Decode<WlanSoftmacBandCapability, D> for WlanSoftmacBandCapabilitywhere
D: ResourceDialect,
Source§fn new_empty() -> WlanSoftmacBandCapability
fn new_empty() -> WlanSoftmacBandCapability
Self. The specific value does not matter,
since it will be overwritten by decode.Source§impl Default for WlanSoftmacBandCapability
impl Default for WlanSoftmacBandCapability
Source§fn default() -> WlanSoftmacBandCapability
fn default() -> WlanSoftmacBandCapability
Source§impl<D> Encode<WlanSoftmacBandCapability, D> for &WlanSoftmacBandCapabilitywhere
D: ResourceDialect,
impl<D> Encode<WlanSoftmacBandCapability, D> for &WlanSoftmacBandCapabilitywhere
D: ResourceDialect,
Source§impl PartialEq for WlanSoftmacBandCapability
impl PartialEq for WlanSoftmacBandCapability
Source§fn eq(&self, other: &WlanSoftmacBandCapability) -> bool
fn eq(&self, other: &WlanSoftmacBandCapability) -> bool
self and other values to be equal, and is used by ==.impl Persistable for WlanSoftmacBandCapability
impl StructuralPartialEq for WlanSoftmacBandCapability
Source§impl TypeMarker for WlanSoftmacBandCapability
impl TypeMarker for WlanSoftmacBandCapability
Source§type Owned = WlanSoftmacBandCapability
type Owned = WlanSoftmacBandCapability
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.Source§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 moreSource§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 WlanSoftmacBandCapability
impl ValueTypeMarker for WlanSoftmacBandCapability
Source§type Borrowed<'a> = &'a WlanSoftmacBandCapability
type Borrowed<'a> = &'a WlanSoftmacBandCapability
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read moreSource§fn borrow(
value: &<WlanSoftmacBandCapability as TypeMarker>::Owned,
) -> <WlanSoftmacBandCapability as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<WlanSoftmacBandCapability as TypeMarker>::Owned, ) -> <WlanSoftmacBandCapability as ValueTypeMarker>::Borrowed<'_>
&Self::Owned to Self::Borrowed.