Skip to main content

atomic_write_sync

Function atomic_write_sync 

Source
pub fn atomic_write_sync(path: &Path, data: &[u8]) -> Result<()>
Expand description

Synchronous version of atomic_write for use in contexts that cannot use async (e.g., the FileSystem trait).

ยงErrors

Returns an error if any file operation fails.