pub struct CurrentCallCtx<'a> {
pub op_ref: OpRef,
pub exec_id: ExecId,
pub self_peer: PeerId,
pub node_attributes: &'a [AttributeProto],
pub node_metadata: &'a [StringStringEntryProto],
pub inbound: InboundCtx,
pub pending_completions: Vec<PendingCompletion>,
pub next_command_id: &'a mut u64,
}Expand description
State scoped to the currently-dispatching op (NodeProto-level metadata, the op’s identity, completion drain, command-id mint).
Fields§
§op_ref: OpRefThe OpRef of the Op currently being dispatched.
exec_id: ExecIdThe ExecId this dispatch belongs to. Syscalls that latch
per-execution (DeadlineMatch, Any) key on
(op_ref, exec_id) so a fresh execution starts unlatched.
self_peer: PeerIdThe Node’s own PeerId.
node_attributes: &'a [AttributeProto]Attributes of the NodeProto being dispatched.
node_metadata: &'a [StringStringEntryProto]Metadata_props of the NodeProto being dispatched.
inbound: InboundCtxInbound-envelope context (all four inbound_* fields).
pending_completions: Vec<PendingCompletion>Completions captured during this dispatch.
next_command_id: &'a mut u64Engine’s monotonic CommandId source.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for CurrentCallCtx<'a>
impl<'a> !UnwindSafe for CurrentCallCtx<'a>
impl<'a> Freeze for CurrentCallCtx<'a>
impl<'a> Send for CurrentCallCtx<'a>
impl<'a> Sync for CurrentCallCtx<'a>
impl<'a> Unpin for CurrentCallCtx<'a>
impl<'a> UnsafeUnpin for CurrentCallCtx<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedComponent for T
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request