Skip to main content

Module instance

Module instance 

Source
Expand description

Instance โ€” per-instance kernel-state container.

Holds entities, components, scheduler, ID counters, ledger, in-flight module refs, wall-remainder, and local tick. Mutation flows through the pub(crate) accessor surface; runtime::apply::apply_stage is the sole caller that drives StepStage (10-bucket commit-or-rollback) into Instance state.

Structsยง

EntityMeta
Per-entity metadata. Surfaced to L1 via runtime::InstanceView.
InstanceSnapshot
Round-tripable shape of a single Instance. Pub struct, pub(crate) fields โ€” visible as a type at the crate boundary (so KernelSnapshot can name it) but not constructible/inspectable from outside the kernel crate.