Skip to main content

Module lifecycle

Module lifecycle 

Source
Expand description

Lifecycle + bootstrap ops.

  • LifecyclePhase(phase: int) → Trigger - fires when Engine::fire_lifecycle(phase) is called.
  • BootstrapDispatch() → cmd - mints a CommandId.
  • BootstrapOutput(cmd) → Trigger - awaits completion of the matching CommandId.

Structs§

BootstrapDispatchOp
Marker struct for dispatch_table TypeId keying.
BootstrapOutputOp
Marker struct for dispatch_table TypeId keying.
LifecyclePhaseOp
Marker struct for dispatch_table TypeId keying.

Functions§

invoke_bootstrap_dispatch
BootstrapDispatch() → cmd.
invoke_bootstrap_output
BootstrapOutput(cmd) → Trigger. Awaits the matching BootstrapDispatch’s CommandId. Reads the upstream cmd input (a CommandIdValue) and returns DispatchResult::Async(cmd_id) - the engine parks the op in pending_async[cmd_id] until the host completes the command via the ingress queue.
invoke_lifecycle_phase
LifecyclePhase(phase: string) → Trigger. Phase-gated firing is enforced by the engine: only ops enrolled in Engine.lifecycle_table[phase] are pushed onto the frontier when fire_lifecycle(phase) runs, so this body only needs to emit the trigger when invoked. Node is the named consumer of Engine::register_lifecycle_op, parsing each node’s phase attribute at install time.
link_force
Linker-anchor - see bb_ops::link_force for details.