pub fn atomic_write(path: &Path, data: &[u8]) -> Result<(), String>
Go atomicWriteFile: a 0600 temp file beside path, renamed over it.
atomicWriteFile
path