RetryableError

Trait RetryableError 

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

Implementors§

Source§

impl<T: Error> RetryableError for T

Default error classification