pub struct WlanRxInfo {
pub rx_flags: WlanRxInfoFlags,
pub valid_fields: WlanRxInfoValid,
pub phy: WlanPhyType,
pub data_rate: u32,
pub primary: ChannelNumber,
pub bandwidth: ChannelBandwidth,
pub vht_secondary_80_channel: ChannelNumber,
pub mcs: u8,
pub rssi_dbm: i8,
pub snr_dbh: i16,
}Fields§
§rx_flags: WlanRxInfoFlagsReceive flags. These represent boolean flags as opposed to enums or value-based info which are represented below. Values should be taken from the WLAN_RX_INFO_FLAGS_* enum.
valid_fields: WlanRxInfoValidBitmask indicating which of the following fields are valid in this struct. Reserved flags must be zero.
phy: WlanPhyTypeThe PHY format of the device at the time of the operation.
data_rate: u32The data rate of the device, measured in units of 0.5 Mb/s.
primary: ChannelNumberThe channel of the device at the time of the operation. This field must be included.
bandwidth: ChannelBandwidthThe bandwidth of the channel at the time of the operation.
vht_secondary_80_channel: ChannelNumberThe secondary 80 MHz channel segment, if applicable.
mcs: u8The modulation and coding scheme index of the device at the time of the operation. Depends on the PHY format and channel width.
rssi_dbm: i8Received Signal Strength Indicator.
snr_dbh: i16Signal-to-Noise Ratio, in 0.5 dB.
Trait Implementations§
Source§impl Clone for WlanRxInfo
impl Clone for WlanRxInfo
Source§fn clone(&self) -> WlanRxInfo
fn clone(&self) -> WlanRxInfo
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 WlanRxInfo
impl Debug for WlanRxInfo
Source§impl<D> Decode<WlanRxInfo, D> for WlanRxInfowhere
D: ResourceDialect,
impl<D> Decode<WlanRxInfo, D> for WlanRxInfowhere
D: ResourceDialect,
Source§fn new_empty() -> WlanRxInfo
fn new_empty() -> WlanRxInfo
Self. The specific value does not matter,
since it will be overwritten by decode.Source§impl<D> Encode<WlanRxInfo, D> for &WlanRxInfowhere
D: ResourceDialect,
impl<D> Encode<WlanRxInfo, D> for &WlanRxInfowhere
D: ResourceDialect,
Source§impl PartialEq for WlanRxInfo
impl PartialEq for WlanRxInfo
Source§fn eq(&self, other: &WlanRxInfo) -> bool
fn eq(&self, other: &WlanRxInfo) -> bool
self and other values to be equal, and is used by ==.impl Persistable for WlanRxInfo
impl StructuralPartialEq for WlanRxInfo
Source§impl TypeMarker for WlanRxInfo
impl TypeMarker for WlanRxInfo
Source§type Owned = WlanRxInfo
type Owned = WlanRxInfo
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 WlanRxInfo
impl ValueTypeMarker for WlanRxInfo
Source§type Borrowed<'a> = &'a WlanRxInfo
type Borrowed<'a> = &'a WlanRxInfo
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read moreSource§fn borrow(
value: &<WlanRxInfo as TypeMarker>::Owned,
) -> <WlanRxInfo as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<WlanRxInfo as TypeMarker>::Owned, ) -> <WlanRxInfo as ValueTypeMarker>::Borrowed<'_>
&Self::Owned to Self::Borrowed.