Trait Backoff
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: TraitBound { trait_: Path { path: "Future", id: Id(170), args: Some(AngleBracketed { args: [], constraints: [AssocItemConstraint { name: "Output", args: None, binding: Equality(Type(Tuple([]))) }] }) }, generic_params: [], modifier: None }The future associated with each backoff. This usually will be some sort of timer.
Required Methods
fn next_backoff(self: &mut Self) -> <Self as >::FutureInitiate the next backoff in the sequence.
Implementors
impl<R> Backoff for ExponentialBackoff<R>