pub fn atomic_write_str(path: impl AsRef<Path>, content: &str) -> Result<()>
Atomically write string content to a file.