Trait Backoff

pub trait Backoff

A backoff trait where a single mutable reference represents a single backoff session. Implementors must also implement Clone which will reset the backoff back to the default state for the next session.

Associated Types

type Future: Future<Output = ()>;

The future associated with each backoff. This usually will be some sort of timer.

Required Methods

fn next_backoff(&mut self) -> Self::Future

Initiate the next backoff in the sequence.

Implementors