pub trait ScsiSaveRestore {
// Required methods
fn save(&self) -> Result<Option<ScsiSavedState>, SaveError>;
fn restore(&self, state: &ScsiSavedState) -> Result<(), RestoreError>;
}
Expand description
Trait to save/restore SCSI devices.
Required Methods§
Sourcefn save(&self) -> Result<Option<ScsiSavedState>, SaveError>
fn save(&self) -> Result<Option<ScsiSavedState>, SaveError>
Save the device state.
Sourcefn restore(&self, state: &ScsiSavedState) -> Result<(), RestoreError>
fn restore(&self, state: &ScsiSavedState) -> Result<(), RestoreError>
Restore the device state.