pub trait Backoff {
// Required method
fn backoff_period(&mut self, iterations: u32) -> Duration;
}
Expand description
The implementation of the algorithm used to time when failures should he retried.
Required Methods§
Sourcefn backoff_period(&mut self, iterations: u32) -> Duration
fn backoff_period(&mut self, iterations: u32) -> Duration
If the backoff implementation should allow for the library to retry the failed function.