Skip to main content

RxPacketAttrib

Struct RxPacketAttrib 

Source
pub struct RxPacketAttrib {
Show 25 fields pub pkt_len: u16, pub physt: bool, pub drvinfo_sz: u8, pub shift_sz: u8, pub qos: bool, pub priority: u8, pub mdata: bool, pub seq_num: u16, pub frag_num: u8, pub mfrag: bool, pub bdecrypted: bool, pub encrypt: u8, pub crc_err: bool, pub icv_err: bool, pub tsfl: u32, pub data_rate: u8, pub bw: u8, pub stbc: u8, pub ldpc: u8, pub sgi: u8, pub scrambler: u8, pub rssi: [u8; 4], pub snr: [i8; 4], pub evm: [i8; 4], pub pkt_rpt_type: RxPacketType,
}
Expand description

Parsed metadata from a Realtek USB RX descriptor.

Fields§

§pkt_len: u16

Number of payload bytes following descriptor, PHY status, and shift bytes.

§physt: bool

Whether PHY status bytes are present after the descriptor.

§drvinfo_sz: u8

Driver-info/PHY-status byte count.

§shift_sz: u8

Extra alignment shift before payload bytes.

§qos: bool

Whether the original 802.11 frame had QoS metadata.

§priority: u8

Realtek priority field.

§mdata: bool

More-data bit from the descriptor.

§seq_num: u16

802.11 sequence number reported by the descriptor.

§frag_num: u8

802.11 fragment number reported by the descriptor.

§mfrag: bool

More-fragments bit from the descriptor.

§bdecrypted: bool

Whether the chip reports the packet as decrypted.

§encrypt: u8

Realtek encryption type field.

§crc_err: bool

Hardware-reported CRC/FCS failure.

§icv_err: bool

Hardware-reported ICV failure.

§tsfl: u32

TSF low timestamp from the descriptor.

§data_rate: u8

Realtek data-rate code.

§bw: u8

Realtek bandwidth code.

§stbc: u8

STBC flag from PHY status.

§ldpc: u8

LDPC flag from PHY status.

§sgi: u8

Short guard interval flag from PHY status.

§scrambler: u8

Scrambler seed from PHY status.

§rssi: [u8; 4]

Per-path raw RSSI readings when available.

§snr: [i8; 4]

Per-path raw SNR readings when available.

§evm: [i8; 4]

Per-path raw EVM readings when available.

§pkt_rpt_type: RxPacketType

Whether this descriptor carries a received frame or a C2H report.

Trait Implementations§

Source§

impl Clone for RxPacketAttrib

Source§

fn clone(&self) -> RxPacketAttrib

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for RxPacketAttrib

Source§

impl Debug for RxPacketAttrib

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for RxPacketAttrib

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for RxPacketAttrib

Source§

impl PartialEq for RxPacketAttrib

Source§

fn eq(&self, other: &RxPacketAttrib) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for RxPacketAttrib

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.