pub struct OpenDiskOptions {
pub read_only: bool,
pub direct: bool,
}Expand description
Options for opening a disk file.
Fields§
§read_only: boolOpen the disk as read-only.
direct: boolBypass the OS page cache for direct disk I/O.
Trait Implementations§
Source§impl Clone for OpenDiskOptions
impl Clone for OpenDiskOptions
Source§fn clone(&self) -> OpenDiskOptions
fn clone(&self) -> OpenDiskOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OpenDiskOptions
Auto Trait Implementations§
impl Freeze for OpenDiskOptions
impl RefUnwindSafe for OpenDiskOptions
impl Send for OpenDiskOptions
impl Sync for OpenDiskOptions
impl Unpin for OpenDiskOptions
impl UnsafeUnpin for OpenDiskOptions
impl UnwindSafe for OpenDiskOptions
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