Module storage

Source
Expand description

Typed local saves. Filesystem/browser I/O occurs only on explicit load/commit.

Structs§

FileStore
Files live under root/owner/slot.fxsave. Root must be absolute.
PlatformStore
Default platform backend. Simulated/autoplay smoke sessions use transient mode so local validation cannot replace the user’s records/settings.
Record
RecordBook
Records
Per-game records cached in memory. Failed persistence still updates the session best; the error remains available and retries occur only on explicit attempts.
Slot
Last accepted in-memory value plus its durable generation. Invalid/future files are preserved until reset() is explicitly requested by the application.

Enums§

LoadStatus
StorageError

Traits§

Backend

Functions§

read_file
Explicit native import/export paths; unlike slots these are chosen by the caller. Reads and atomic replacements are bounded to the save-file ceiling.
run_micros
Convert a bounded finite game timer without accepting NaN/negative/zero runs.
write_file