pub fn save(path: &Path, value: &impl Serialize) -> Result<()>
Writes value to path atomically, so a crash never leaves a truncated file that every later load would refuse.
value
path
When the file cannot be written.