Trait devices::BusDeviceSync 
source · pub trait BusDeviceSync: BusDevice + Sync {
    // Required methods
    fn read(&self, offset: BusAccessInfo, data: &mut [u8]);
    fn write(&self, offset: BusAccessInfo, data: &[u8]);
    // Provided methods
    fn snapshot_sync(&self) -> Result<AnySnapshot> { ... }
    fn restore_sync(&self, _data: AnySnapshot) -> Result<()> { ... }
    fn sleep_sync(&self) -> Result<()> { ... }
    fn wake_sync(&self) -> Result<()> { ... }
}Required Methods§
fn read(&self, offset: BusAccessInfo, data: &mut [u8])
fn write(&self, offset: BusAccessInfo, data: &[u8])
Provided Methods§
fn snapshot_sync(&self) -> Result<AnySnapshot>
sourcefn restore_sync(&self, _data: AnySnapshot) -> Result<()>
 
fn restore_sync(&self, _data: AnySnapshot) -> Result<()>
Load a saved snapshot of an image.
sourcefn sleep_sync(&self) -> Result<()>
 
fn sleep_sync(&self) -> Result<()>
Stop all threads related to the device. Sleep should be idempotent.