pub struct OutboundEnvelope {
pub req_id: MsgId,
pub rsp: Msg,
pub span: Span,
pub source_peer_idx: Option<u32>,
}Expand description
Envelope wrapping a dispatcher response and the request id it corresponds to.
span carries the originating request span back to the
client-side FSM so the response writeback nests under the
originating client span. The default is
tracing::Span::none.
source_peer_idx identifies the peer this response came from
when the dispatcher fanned the request to multiple replicas.
None is used for synthetic / inline / single-target paths
where the source is unambiguous.
Fields§
§req_id: MsgIdRequest id the response is for.
rsp: MsgThe response message.
span: SpanOriginating request span for cross-task propagation.
source_peer_idx: Option<u32>Index of the peer this reply was produced by, when known. Set by the per-target server / dnode-server drivers and consumed by the per-request reply coalescer.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OutboundEnvelope
impl !RefUnwindSafe for OutboundEnvelope
impl Send for OutboundEnvelope
impl Sync for OutboundEnvelope
impl Unpin for OutboundEnvelope
impl UnsafeUnpin for OutboundEnvelope
impl !UnwindSafe for OutboundEnvelope
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