Trait kernel::retry::ShouldRetry
source · pub trait ShouldRetry<E> {
// Required methods
fn should_retry(&mut self, error: &E) -> bool;
fn reset(&mut self);
}
Expand description
A strategy for determining whether an error is retryable.
Required Methods§
sourcefn should_retry(&mut self, error: &E) -> bool
fn should_retry(&mut self, error: &E) -> bool
Returns true
if the provided error is retryable.