pub struct TelemetryEnvelope {
pub ty: DataType,
pub endpoints: Arc<[DataEndpoint]>,
pub sender: Arc<str>,
pub source_address: u32,
pub timestamp_ms: u64,
pub wire_shape: Option<MessageElement>,
pub target_senders: Arc<[u64]>,
}Expand description
Lightweight header-only view of a packed Packet.
Produced by peek_envelope without allocating or copying the payload.
Fields§
§ty: DataTypeTelemetry DataType discriminant.
endpoints: Arc<[DataEndpoint]>All endpoints this packet is destined for (set bits in the bitmap).
sender: Arc<str>Sender identity resolved from discovery/config address state.
source_address: u32Compact source address carried by the packet header.
timestamp_ms: u64Timestamp in milliseconds (as stored on the wire).
wire_shape: Option<MessageElement>Inline wire-format payload shape, if present.
target_senders: Arc<[u64]>Frozen destination sender hashes, if present.
Trait Implementations§
Source§impl Clone for TelemetryEnvelope
impl Clone for TelemetryEnvelope
Source§fn clone(&self) -> TelemetryEnvelope
fn clone(&self) -> TelemetryEnvelope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TelemetryEnvelope
impl Debug for TelemetryEnvelope
impl Eq for TelemetryEnvelope
Source§impl PartialEq for TelemetryEnvelope
impl PartialEq for TelemetryEnvelope
Source§fn eq(&self, other: &TelemetryEnvelope) -> bool
fn eq(&self, other: &TelemetryEnvelope) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TelemetryEnvelope
Auto Trait Implementations§
impl Freeze for TelemetryEnvelope
impl RefUnwindSafe for TelemetryEnvelope
impl Send for TelemetryEnvelope
impl Sync for TelemetryEnvelope
impl Unpin for TelemetryEnvelope
impl UnsafeUnpin for TelemetryEnvelope
impl UnwindSafe for TelemetryEnvelope
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