pub struct LoopConfig {
pub block_size: u32,
pub read_only: bool,
pub autoclear: bool,
pub direct_io: bool,
}Expand description
The configuration of a new loop device.
Fields§
§block_size: u32The logical block size of the device in bytes. The value 0 lets the kernel choose the default.
read_only: boolThe device is read-only.
autoclear: boolThe kernel detaches the backing file at the last close of the device.
direct_io: boolThe device reads the backing file with direct I/O where the
kernel accepts it. LoopDevice::attach tells which.
Trait Implementations§
Source§impl Clone for LoopConfig
impl Clone for LoopConfig
impl Copy for LoopConfig
Source§impl Debug for LoopConfig
impl Debug for LoopConfig
Source§impl Default for LoopConfig
impl Default for LoopConfig
impl Eq for LoopConfig
Source§impl PartialEq for LoopConfig
impl PartialEq for LoopConfig
impl StructuralPartialEq for LoopConfig
Auto Trait Implementations§
impl Forget for LoopConfig
impl Freeze for LoopConfig
impl Move for LoopConfig
impl RefUnwindSafe for LoopConfig
impl Send for LoopConfig
impl Sync for LoopConfig
impl Unpin for LoopConfig
impl UnsafeUnpin for LoopConfig
impl UnwindSafe for LoopConfig
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