Module engine

Module engine 

Source

Structs§

ControlState
HeartbeatDriver
HeartbeatDriverArgs
RunnerRegistry
Registry mapping capability strings to runner instances.

Enums§

HeartbeatLoopResult

Traits§

HeartbeatTransport

Functions§

apply_heartbeat_token_update
Apply heartbeat token refresh: if HeartbeatResponse carries a new access token, swap it into the provided TokenRef so subsequent storage requests use it.
build_storage_for_lease
Build storage ports (input/output) for a given lease by constructing a TokenRef from the lease’s access token and delegating to storage::build_ports.
run_cycle_with_dms
Run a single poll→run→complete/fail cycle using DMS client and the runner registry. This is a minimal integration used by tests; run_node wiring remains separate.
run_node
Run the node main loop. Networking and storage are wired in later prompts.
run_node_with_shutdown