Skip to main content

save

Function save 

Source
pub fn save(path: &Path, value: &impl Serialize) -> Result<()>
Expand description

Writes value to path atomically, so a crash never leaves a truncated file that every later load would refuse.

ยงErrors

When the file cannot be written.