pub trait BackoffStrategy<'a, E> {
type Output;
// Required method
fn delay(&mut self, attempt: u32, error: &'a E) -> Self::Output;
}Expand description
Trait for computing the amount of delay between attempts.
Required Associated Types§
Sourcetype Output
type Output
The delay type. Will normally be either Duration or RetryPolicy.