pub trait RecoverableError {
// Required methods
fn is_recoverable(&self) -> bool;
fn recovery_action(&self) -> Option<RecoveryAction>;
// Provided method
fn retry_delay_ms(&self) -> Option<u64> { ... }
}Expand description
Trait for errors that can be recovered from
Required Methods§
Sourcefn is_recoverable(&self) -> bool
fn is_recoverable(&self) -> bool
Check if error is recoverable
Sourcefn recovery_action(&self) -> Option<RecoveryAction>
fn recovery_action(&self) -> Option<RecoveryAction>
Suggest recovery action
Provided Methods§
Sourcefn retry_delay_ms(&self) -> Option<u64>
fn retry_delay_ms(&self) -> Option<u64>
Retry delay in milliseconds
Implementors§
impl RecoverableError for RecognitionError
Implementation of RecoverableError for RecognitionError