pub trait BlockDevice:
Device
+ Send
+ Sync
+ Any {
// Required methods
fn read_block(&self, block_id: usize, buf: &mut [u8]);
fn write_block(&self, block_id: usize, buf: &[u8]);
}pub trait BlockDevice:
Device
+ Send
+ Sync
+ Any {
// Required methods
fn read_block(&self, block_id: usize, buf: &mut [u8]);
fn write_block(&self, block_id: usize, buf: &[u8]);
}