pub struct DirectIoFileWrapper { /* private fields */ }Expand description
Wrapper data structure for direct/unbuffered I/O
Implementations§
Trait Implementations§
Source§impl Debug for DirectIoFileWrapper
impl Debug for DirectIoFileWrapper
Source§impl FileExt for DirectIoFileWrapper
impl FileExt for DirectIoFileWrapper
Source§fn preallocate(&self, len: u64) -> Result<()>
fn preallocate(&self, len: u64) -> Result<()>
Make sure file has specified number of bytes allocated for it
Source§fn advise_random_access(&self) -> Result<()>
fn advise_random_access(&self) -> Result<()>
Advise OS/file system that file will use random access and read-ahead behavior is
undesirable, on Windows this can only be set when file is opened, see
OpenOptionsExtSource§fn advise_sequential_access(&self) -> Result<()>
fn advise_sequential_access(&self) -> Result<()>
Advise OS/file system that file will use sequential access and read-ahead behavior is
desirable, on Windows this can only be set when file is opened, see
OpenOptionsExtSource§fn disable_cache(&self) -> Result<()>
fn disable_cache(&self) -> Result<()>
Disable cache on macOS
Source§impl ReadAtSync for &DirectIoFileWrapper
impl ReadAtSync for &DirectIoFileWrapper
Source§impl ReadAtSync for DirectIoFileWrapper
impl ReadAtSync for DirectIoFileWrapper
Auto Trait Implementations§
impl !Freeze for DirectIoFileWrapper
impl !RefUnwindSafe for DirectIoFileWrapper
impl Send for DirectIoFileWrapper
impl Sync for DirectIoFileWrapper
impl Unpin for DirectIoFileWrapper
impl UnwindSafe for DirectIoFileWrapper
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more