#[non_exhaustive]pub struct CsiFrame {
pub meta: RxMeta,
pub stimulus: Stimulus,
pub header: Option<HeaderDigest>,
pub payload: CsiPayload,
}Expand description
One channel measurement.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.meta: RxMetaNormalised receive metadata.
stimulus: StimulusWhat excited the channel.
header: Option<HeaderDigest>The measured PPDU’s MAC header, when the source captured it.
payload: CsiPayloadThe channel measurement itself.
Implementations§
Source§impl CsiFrame
impl CsiFrame
Sourcepub fn new(
meta: RxMeta,
stimulus: Stimulus,
header: Option<HeaderDigest>,
payload: CsiPayload,
) -> Self
pub fn new( meta: RxMeta, stimulus: Stimulus, header: Option<HeaderDigest>, payload: CsiPayload, ) -> Self
A measurement frame.
Sourcepub fn transmitter(&self) -> Option<[u8; 6]>
pub fn transmitter(&self) -> Option<[u8; 6]>
The transmitter of the measured PPDU: the header’s addr2 when present, else the
stimulus’ transmitter address.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CsiFrame
impl<'de> Deserialize<'de> for CsiFrame
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl MaxSize for CsiFrame
impl MaxSize for CsiFrame
Source§const POSTCARD_MAX_SIZE: usize
const POSTCARD_MAX_SIZE: usize
The maximum possible size that the serialization of this
type can have, in bytes.
impl StructuralPartialEq for CsiFrame
Auto Trait Implementations§
impl Freeze for CsiFrame
impl RefUnwindSafe for CsiFrame
impl Send for CsiFrame
impl Sync for CsiFrame
impl Unpin for CsiFrame
impl UnsafeUnpin for CsiFrame
impl UnwindSafe for CsiFrame
Blanket Implementations§
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