pub fn write_atomic(path: &Path, contents: &[u8]) -> Result<()>Expand description
Write contents to path atomically: a temporary file in the same
directory, synced, then renamed over the old one. On Unix the file is
readable by its owner only, since backups hold the network key.