pub fn write_snapshot(state: &MissionState, path: &Path) -> Result<()>Expand description
Serialize the state pretty-printed to a sibling tmp file, then atomically
rename over path so readers never observe a half-written snapshot.
pub fn write_snapshot(state: &MissionState, path: &Path) -> Result<()>Serialize the state pretty-printed to a sibling tmp file, then atomically
rename over path so readers never observe a half-written snapshot.