Trait futures_backoff::Condition
[−]
[src]
pub trait Condition<E> { fn should_retry(&mut self, error: &E) -> bool; }
Specifies under which conditions a retry is attempted.
Required Methods
fn should_retry(&mut self, error: &E) -> bool
Determine whether to retry based on the previous error.