pub trait BlockDevice:
Send
+ Sync
+ Any {
// Required methods
fn read_offset(&self, offset: usize) -> Vec<u8>;
fn write_offset(&self, offset: usize, data: &[u8]);
}Required Methods§
fn read_offset(&self, offset: usize) -> Vec<u8>
fn write_offset(&self, offset: usize, data: &[u8])
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".