Trait Backoff

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

Source

fn backoff_period(&mut self, iterations: u32) -> Duration

If the backoff implementation should allow for the library to retry the failed function.

Implementors§