pub trait RecoveryStrategy {
// Required methods
fn can_handle(&self, error: &DeviceError) -> bool;
fn recover(
&self,
error: &DeviceError,
context: &HashMap<String, String>,
) -> DeviceResult<RecoveryAction>;
}Expand description
Recovery strategy trait