Skip to main content

BlockDeviceExt

Trait BlockDeviceExt 

Source
pub trait BlockDeviceExt: BlockDevice {
    // Provided method
    fn total_size(&self) -> u64 { ... }
}
Expand description

Extension trait for BlockDevice with helper methods.

Provided Methods§

Source

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".

Implementors§