pub struct ServiceEnvelope {
pub protocol_version: u32,
pub seq: u64,
pub trace_context: TraceContext,
pub pagination: Option<ReportPagination>,
pub message: ServiceMessage,
}Expand description
Envelope wrapping a ServiceMessage with a monotonically increasing
sequence number for replay protection and the current protocol version.
JSON on the wire includes an optional trace_context object for distributed
tracing correlation, and optional pagination metadata for paginated reports.
Fields§
§protocol_version: u32§seq: u64§trace_context: TraceContextDistributed tracing context for correlating this message across services. Always populated when sending; tolerates absence when receiving from older peers.
pagination: Option<ReportPagination>Pagination metadata for paginated reports.
None for single-message reports (the common case). When present, the
controller tracks page arrival and defers finalization until all pages
have been received.
message: ServiceMessageTrait Implementations§
Source§impl Clone for ServiceEnvelope
impl Clone for ServiceEnvelope
Source§fn clone(&self) -> ServiceEnvelope
fn clone(&self) -> ServiceEnvelope
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 ServiceEnvelope
impl Debug for ServiceEnvelope
Source§impl<'de> Deserialize<'de> for ServiceEnvelope
impl<'de> Deserialize<'de> for ServiceEnvelope
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 ServiceEnvelope
Source§impl PartialEq for ServiceEnvelope
impl PartialEq for ServiceEnvelope
Source§impl Serialize for ServiceEnvelope
impl Serialize for ServiceEnvelope
impl StructuralPartialEq for ServiceEnvelope
Auto Trait Implementations§
impl Freeze for ServiceEnvelope
impl RefUnwindSafe for ServiceEnvelope
impl Send for ServiceEnvelope
impl Sync for ServiceEnvelope
impl Unpin for ServiceEnvelope
impl UnsafeUnpin for ServiceEnvelope
impl UnwindSafe for ServiceEnvelope
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.