Skip to main content

save

Function save 

Source
pub fn save(path: &Path, data: &StoreData) -> Result<(), String>
Expand description

Writes a store atomically: a temporary file in the same directory, synced, then renamed over the old one.