Expand description
Persist and query per-step completion for setup resume.
Structs§
- Resume
State - Serialized resume file: ordered step completion records.
- Resume
Step Record - One recorded attempt for a step id.
Enums§
- Step
Status - Derived status of a registered step against
ResumeState.
Functions§
- is_
stale - True when recorded completion is older than the binary’s
step_version. - load
- Load resume JSON from
path, or an empty state when the file is missing. - mark_
failed - Replace any prior record for
step_idwith a failure and save. - record_
ok - Replace any prior record for
stepwith a successful completion and save. - save
- Write resume JSON (pretty) to
path, creating parent directories as needed. - status_
for - Compute
StepStatusfrom the latest matching record instate.