Function atomic_write

Source
fn atomic_write(path: &Path, contents: &[u8]) -> Result<()>