Writes at `offset` into this device
(&self, base: u64, offset: u64, data: &[u8])
| 47 | } |
| 48 | /// Writes at `offset` into this device |
| 49 | fn write(&self, base: u64, offset: u64, data: &[u8]) -> Option<Arc<Barrier>> { |
| 50 | self.lock() |
| 51 | .expect("Failed to acquire device lock") |
| 52 | .write(base, offset, data) |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | #[derive(Error, Debug)] |