pub trait BusDeviceSync: Send + Sync {
// Provided methods
fn read(&self, base: u64, offset: u64, data: &mut [u8]) { ... }
fn write(&self, base: u64, offset: u64, data: &[u8]) -> Option<Arc<Barrier>> { ... }
}Expand description
Trait similar to BusDevice with the extra requirement that a device is Send and Sync.