scsi_core

Trait ScsiSaveRestore

Source
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§

Source

fn save(&self) -> Result<Option<ScsiSavedState>, SaveError>

Save the device state.

Source

fn restore(&self, state: &ScsiSavedState) -> Result<(), RestoreError>

Restore the device state.

Implementors§