Expand description
Bounded deterministic replay timelines. Games own checkpoint/input semantics; the timeline owns fixed ticks, accepted events, hashes, seeking and byte limits.
Structs§
- Event
Input - Event
Iter - Header
- Limits
- Playback
- Immutable shared tape plus a cursor. Seeking restores the nearest earlier checkpoint once, then advances at most the caller’s work budget per pump. Verification stops at the first divergence. A seek verifies only the restored checkpoint and subsequent steps; start from the beginning to check every tick.
- Recorder
- All metadata and byte buffers reserve their budgets at start. A rejected tick changes no buffers; reaching a limit leaves the complete prefix exportable.
- Recording
- Replay
Mismatch - The first divergence observed since starting, seeking, or resetting playback.
Enums§
- Playback
Error - Playback
Status - Cursor state; a failed verification is never reported as
Self::Finished. - Replay
Checksum - Which values disagree in a
ReplayMismatch. - Replay
Error
Constants§
Traits§
- Replay
World - Restore must stage/validate before replacing the game. Step applies recorded inputs exactly once; expected events are for comparison/presentation, not a second application of already simulated authoritative damage.
Functions§
- derive_
seed - Stateless deterministic seed derivation for a tick/channel, independent of render cadence and unrelated systems consuming random values.
- input_
checksum - Stable FNV-1a checksum of input bytes, including empty input. This is a diagnostic checksum, not a cryptographic integrity check.