pub trait RetryableError {
// Required methods
fn is_retryable(&self) -> bool;
fn is_fatal(&self) -> bool;
fn retry_after(&self) -> Option<Duration>;
}
Expand description
Error classification for retry decisions
Required Methods§
fn is_retryable(&self) -> bool
fn is_fatal(&self) -> bool
fn retry_after(&self) -> Option<Duration>
Implementors§
impl<T: Error> RetryableError for T
Default error classification