Skip to main content

Module persist

Module persist 

Source
Expand description

Phase 172.H — runtime parameter-override persistence.

A ParamStore persists parameter values set at runtime (via the set_parameters service) so they survive a restart. At boot the generated runtime declares the plan’s compile-time defaults, then ParamStore::load overlays any persisted overrides; after a successful runtime set the executor flushes the full parameter set back via ParamStore::save.

NullParamStore is the no-op default (no persistence). FileParamStore (std only) persists scalars to a text file — the hosted backend. Flash / NVS backends for embedded targets are future work.

Structs§

FileParamStore
Hosted ParamStore persisting scalar parameter overrides to a text file: one name<TAB>kind<TAB>value line per scalar parameter (kind ∈ b/i/d/s). Arrays and NotSet are not persisted; names or values containing a tab or newline are skipped (they would corrupt the line format). Writes are atomic (temp file + rename).
NullParamStore
No-op store: the default when persistence is disabled.

Enums§

ParamStoreError
Error from a ParamStore backend.

Traits§

ParamStore
Backend that persists runtime parameter overrides across restarts (172.H).