Skip to main content

load_runtime_state

Function load_runtime_state 

Source
pub async fn load_runtime_state(
    store: &dyn RuntimeStore,
    runtime_id: &LogicalRuntimeId,
) -> Result<Option<RuntimeState>, RuntimeStoreError>
Expand description

Load the last persisted runtime-state projection from a generated lifecycle record.

This is a projection of MachineLifecycleCommit authority. Store implementations provide only opaque record bytes; the runtime crate owns the decoding and rejects compatibility rows that are not machine lifecycle records.