block_device 0.1.1

BlockDevice trait
Documentation
1
2
3
4
5
6
7
8
# BlockDevice trait

```rust
pub trait BlockDevice {
    type Error;
    fn read(&self, buf: &mut [u8], address: usize, number_of_blocks: u32) -> Result<(), Self::Error>;
    fn write(&self, buf: &[u8], address: usize, number_of_blocks: u32) -> Result<(), Self::Error>;
}
```