pub fn atomic_write(dest: impl AsRef<Path>, data: &[u8]) -> Result<()>Expand description
Write data to dest atomically.
Convenience wrapper around AtomicFileWriter for in-memory data.
ยงErrors
Returns std::io::Error if the file cannot be created, written,
or renamed.