[][src]Trait tryagain::Backoff

pub trait Backoff {
    pub fn backoff_period(&mut self, iterations: u32) -> Duration;
}

The implementation of the algorithm used to time when failures should he retried.

Required methods

pub fn backoff_period(&mut self, iterations: u32) -> Duration[src]

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

Loading content...

Implementors

impl Backoff for ExponentialBackoff[src]

impl Backoff for ImmediateBackoff[src]

Loading content...