pub fn atomic_write(path: &Path, bytes: &[u8]) -> Result<()>
Atomically replace path with bytes.
path
bytes