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