Expand description
Runtime resource handle + ComponentTimerKind.
Runtime resource handle threaded into every dispatch_atomic
call.
The engine constructs a RuntimeResourceRef by split-borrowing
the framework-primitive bundle + the bus before each
dispatch_atomic call. Each field is a distinct &mut, so the
borrow checker enforces field-level exclusivity — an Op may
touch any subset.
Async-completing impls call ctx.complete_command(cmd_id, results); the engine drains pending_completions after the
hook returns and routes them through handle_completion.
Structs§
- Component
Timer Kind - Component-scheduled timer kind. Used by
ProtocolRuntime::on_timer: protocol impls schedule timers viactx.time.schedulerand receive the matured timer back via this newtype. - Components
View - Read-only view onto sibling components registered on the Node.
Constructed by the engine at dispatch time from
&engine.components+&engine.slots. The Vec is indexed byComponentRef.as_u32() as usize; the slot the currently- dispatching component lives in isNonefor the duration of the dispatch (take-and-restore ininvoke_atomic), so callers can’t accidentally re-enter themselves. - Current
Call Ctx - State scoped to the currently-dispatching op (NodeProto-level metadata, the op’s identity, completion drain, command-id mint).
- Inbound
Ctx - Inbound-envelope context captured at delivery time and threaded into every op dispatched as part of the cascade.
- NetCtx
- Network/transport state borrowed mutably during dispatch.
- PeerCtx
- Per-peer state borrowed mutably during dispatch.
- Pending
Completion - Captured async-completion payload. The engine drains these from
the post-dispatch
RuntimeResourceRefand routes them throughEngine::handle_completion. - Runtime
Resource Ref - Engine-resource handle threaded into every
dispatch_atomiccall. Perdocs/ENGINE.md§10. Fields are grouped by concern -peers/net/time/syscallcarry the framework primitive references;currentcarries per-op state;bus/ingressstay top-level;componentsexposes the cross-component read-only surface. - Syscall
Ctx - Syscall-side state (storage, RNG, latches, app-event drain).
- TimeCtx
- Time / scheduling state borrowed mutably during dispatch.
Enums§
- Dependency
Error - Errors surfaced by
RuntimeResourceRef::dependency.