Skip to main content

write_snapshot

Function write_snapshot 

Source
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.