Function atomic_read

Source
pub fn atomic_read(path: &Path) -> Result<Vec<u8>>
Expand description

Read the entire file written by atomic_write.

The read itself is only atomic if the file was written by atomic_write. This function handles format differences (symlink vs normal files) transparently.