pub fn atomic_write_private(dest: impl AsRef<Path>, data: &[u8]) -> Result<()>Expand description
Like atomic_write but creates the file with owner-only permissions
(0600 on Unix). Use for files containing plaintext secrets or other
sensitive material.
ยงErrors
Returns an error if the file cannot be written or renamed into place.