Skip to main content

Module context

Module context 

Source
Expand description

ActionContext โ€” read-only Instance view passed to Action::compute.

Domain authors receive this context, observe Instance state through the limited accessor surface, and return a Vec<Op> describing their intended effects. Mutation is forbidden โ€” the kernel translates Ops into StepStage deltas, which apply_stage later commits.

Structsยง

ActionContext
Read-only context passed to ActionCompute::compute. Carries the originating actor, current tick, and a borrowed view of the instance for limited introspection.