Skip to main content

open_file_readonly

Function open_file_readonly 

Source
pub fn open_file_readonly(path: &Path) -> Result<Box<dyn FileIo>>
Expand description

2f: open for a SNAPSHOT READER – read-only at the OS level, so the reader cannot write even by bug, and always Buffered (a reader shares the file with a live writer; O_DIRECT’s alignment contract buys nothing on a cache the writer is also warming).