pub trait BlockDeviceExt: BlockDevice {
// Provided method
fn total_size(&self) -> u64 { ... }
}Expand description
Extension trait for BlockDevice with helper methods.
Provided Methods§
Sourcefn total_size(&self) -> u64
fn total_size(&self) -> u64
Get the total size of the device in bytes.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".