#[non_exhaustive]pub struct Envelope {
pub version: u8,
pub node_id: [u8; 6],
pub session_id: u32,
pub source: SourceKind,
pub stream_seq: u32,
}Expand description
Who emitted a frame, when, and from which measurement source. Encoded ahead of every Body.
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.version: u8WIRE_VERSION of the encoder.
node_id: [u8; 6]Identity of the node that delivered the frame: its base MAC address.
session_id: u32The measurement session this frame belongs to. Set by the controller with
set_session, or drawn at random when a run starts without one.
source: SourceKindThe kind of source that produced the measurement.
stream_seq: u32Per-source frame counter assigned by the delivering node, incremented once per frame it emits. A gap is a frame lost between capture and the host. Unlike an 802.11 sequence number it never repeats on a retry and does not depend on who transmitted the sounding.
Implementations§
Trait Implementations§
impl Copy for Envelope
Source§impl<'de> Deserialize<'de> for Envelope
impl<'de> Deserialize<'de> for Envelope
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
impl Eq for Envelope
Source§impl MaxSize for Envelope
impl MaxSize for Envelope
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 Envelope
Auto Trait Implementations§
impl Freeze for Envelope
impl RefUnwindSafe for Envelope
impl Send for Envelope
impl Sync for Envelope
impl Unpin for Envelope
impl UnsafeUnpin for Envelope
impl UnwindSafe for Envelope
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