pub trait BlockDevice {
// Required method
fn read_block(&self, block: u32, buf: &mut [u8; 512]) -> Result<(), ()>;
}Expand description
Block device trait for reading blocks from storage.
Implement this trait for your storage medium (file, memory, hardware, etc.).