pub struct IoOptions {
pub dontcache: bool,
}Expand description
Options for IO operations.
Fields§
§dontcache: boolBypasses the page cache for I/O operations.
Currently only implemented for the Linux PollSource backend using RWF_DONTCACHE.
Other backends (like io_uring, tokio, or Windows) silently ignore this option.
On PollSource, if the kernel doesn’t support RWF_DONTCACHE (e.g. older kernels),
the backend will transparently fallback to cached I/O. However, if the filesystem
doesn’t support it (returning EOPNOTSUPP), the operation will fail.
Trait Implementations§
impl Copy for IoOptions
Auto Trait Implementations§
impl Freeze for IoOptions
impl RefUnwindSafe for IoOptions
impl Send for IoOptions
impl Sync for IoOptions
impl Unpin for IoOptions
impl UnwindSafe for IoOptions
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