Trait backoff::backoff::Backoff[][src]

pub trait Backoff {
    fn next_backoff(&mut self) -> Option<Duration>;

    fn reset(&mut self) { ... }
}
Expand description

Backoff is a backoff policy for retrying an operation.

Required methods

next_backoff() time is elapsed before it is called again. If it returns None, it means the operation timed out and no further retries are done.

Provided methods

Resets the internal state to the initial value.

Implementations on Foreign Types

Implementors