Trait SaveRestoreVmbusDevice

Source
pub trait SaveRestoreVmbusDevice: VmbusDevice {
    // Required methods
    fn save<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = Result<SavedStateBlob, SaveError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn restore<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        control: RestoreControl<'life1>,
        state: SavedStateBlob,
    ) -> Pin<Box<dyn Future<Output = Result<(), RestoreError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Trait for vmbus devices that implement save/restore.

Required Methods§

Source

fn save<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<SavedStateBlob, SaveError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Save the stopped device.

Source

fn restore<'life0, 'life1, 'async_trait>( &'life0 mut self, control: RestoreControl<'life1>, state: SavedStateBlob, ) -> Pin<Box<dyn Future<Output = Result<(), RestoreError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Restore the stopped device.

control must be used to restore the channel state in the server and to get the GPADL and interrupt state.

Implementors§