Skip to main content

Module checkpoint

Module checkpoint 

Source
Expand description

Versioned state snapshots for long-running engines. Versioned state snapshots for long-running engines.

Any Clone state (an Indicator, an engine::* tracker, a composition graph) can be captured into a Checkpoint and restored later, in-process, to deterministically save/rewind execution. When S also implements serde::Serialize/Deserialize (behind the serde feature), the checkpoint itself becomes serializable for cross-process persistence — no separate persistence API is required.

Structs§

Checkpoint
A versioned, timestamped snapshot of some Clone-able engine state S.
CheckpointStore
Keeps the single most recent Checkpoint for S, auto-incrementing the version on every CheckpointStore::save. Suited for a “last confirmed state” rewind point on a long-running engine.