pub struct VolumeOptions { /* private fields */ }Expand description
How a volume is opened beyond its path.
Implementations§
Source§impl VolumeOptions
impl VolumeOptions
Sourcepub fn lock(self, lock: bool) -> Self
pub fn lock(self, lock: bool) -> Self
Lock the volume once it is open, so that this handle is the only one that can use it until the handle closes. A file system on the volume is flushed and writes nothing more, which is what lets a raw write to its own sectors be made; a volume with no file system needs none. Opening fails, and nothing is held, if anything else has the volume open.
Trait Implementations§
Source§impl Clone for VolumeOptions
impl Clone for VolumeOptions
impl Copy for VolumeOptions
Source§impl Debug for VolumeOptions
impl Debug for VolumeOptions
Auto Trait Implementations§
impl Freeze for VolumeOptions
impl RefUnwindSafe for VolumeOptions
impl Send for VolumeOptions
impl Sync for VolumeOptions
impl Unpin for VolumeOptions
impl UnsafeUnpin for VolumeOptions
impl UnwindSafe for VolumeOptions
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