AutoRecoveryHandler

Trait AutoRecoveryHandler 

Source
pub trait AutoRecoveryHandler:
    Debug
    + Send
    + Sync {
    // Required methods
    fn can_recover(&self, error: &SklearsComposeError) -> bool;
    fn attempt_recovery(
        &self,
        error: &SklearsComposeError,
        context: &EnhancedErrorContext,
    ) -> Result<RecoveryOutcome>;
}
Expand description

Trait for automatic recovery handlers

Required Methods§

Implementors§