pub struct BlockConfig {
pub capacity: u64,
pub blk_size: u32,
pub path: PathBuf,
pub read_only: bool,
pub num_queues: u16,
}Expand description
Block device configuration.
Fields§
§capacity: u64Disk capacity in 512-byte sectors.
blk_size: u32Block size (usually 512).
path: PathBufPath to the backing file/device.
read_only: boolRead-only mode.
num_queues: u16Number of request queues (1 = single queue, >1 = multi-queue with F_MQ).
Trait Implementations§
Source§impl Clone for BlockConfig
impl Clone for BlockConfig
Source§fn clone(&self) -> BlockConfig
fn clone(&self) -> BlockConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BlockConfig
impl Debug for BlockConfig
Source§impl Default for BlockConfig
impl Default for BlockConfig
Source§fn default() -> BlockConfig
fn default() -> BlockConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BlockConfig
impl RefUnwindSafe for BlockConfig
impl Send for BlockConfig
impl Sync for BlockConfig
impl Unpin for BlockConfig
impl UnsafeUnpin for BlockConfig
impl UnwindSafe for BlockConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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