BlkDevIO trait
| 29 | |
| 30 | // BlkDevIO trait |
| 31 | pub trait BlkDevIO |
| 32 | { |
| 33 | fn read(&self, address: u32, buffer: &mut [u8]) -> Result<(), ()>; |
| 34 | fn write(&mut self, address: u32, buffer: &[u8]) -> Result<(), ()>; |
| 35 | fn blksize(&self) -> usize; |
| 36 | fn blkcount(&self) -> usize; |
| 37 | } |
| 38 | |
| 39 | |
| 40 | // Implementation of the BlkDevIO trait for BlkDev |
nothing calls this directly
no outgoing calls
no test coverage detected