pub struct ControllerEnvelope {
pub protocol_version: u32,
pub seq: u64,
pub trace_context: TraceContext,
pub message: ControllerMessage,
}Expand description
Envelope wrapping a ControllerMessage 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.
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.
message: ControllerMessageTrait Implementations§
Source§impl Clone for ControllerEnvelope
impl Clone for ControllerEnvelope
Source§fn clone(&self) -> ControllerEnvelope
fn clone(&self) -> ControllerEnvelope
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 ControllerEnvelope
impl Debug for ControllerEnvelope
Source§impl<'de> Deserialize<'de> for ControllerEnvelope
impl<'de> Deserialize<'de> for ControllerEnvelope
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 ControllerEnvelope
Source§impl PartialEq for ControllerEnvelope
impl PartialEq for ControllerEnvelope
Source§fn eq(&self, other: &ControllerEnvelope) -> bool
fn eq(&self, other: &ControllerEnvelope) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ControllerEnvelope
impl Serialize for ControllerEnvelope
impl StructuralPartialEq for ControllerEnvelope
Auto Trait Implementations§
impl Freeze for ControllerEnvelope
impl RefUnwindSafe for ControllerEnvelope
impl Send for ControllerEnvelope
impl Sync for ControllerEnvelope
impl Unpin for ControllerEnvelope
impl UnsafeUnpin for ControllerEnvelope
impl UnwindSafe for ControllerEnvelope
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.