pub trait OpenOptionsExt {
// Required methods
fn advise_random_access(&mut self) -> &mut Self;
fn advise_sequential_access(&mut self) -> &mut Self;
}
Expand description
Extension convenience trait that allows setting some file opening options in cross-platform way
Required Methods§
sourcefn advise_random_access(&mut self) -> &mut Self
fn advise_random_access(&mut self) -> &mut Self
Advise OS/file system that file will use random access and read-ahead behavior is
undesirable, only has impact on Windows, for other operating systems see FileExt
sourcefn advise_sequential_access(&mut self) -> &mut Self
fn advise_sequential_access(&mut self) -> &mut Self
Advise OS/file system that file will use sequential access and read-ahead behavior is
desirable, only has impact on Windows, for other operating systems see FileExt
Object Safety§
This trait is not object safe.