Trait kernel::retry::Backoff

source ·
pub trait Backoff {
    // Required methods
    fn backoff(&mut self) -> Duration;
    fn reset(&mut self);
}
Expand description

A backoff strategy for retries.

Required Methods§

source

fn backoff(&mut self) -> Duration

source

fn reset(&mut self)

Implementations on Foreign Types§

source§

impl Backoff for Duration

source§

fn backoff(&mut self) -> Duration

source§

fn reset(&mut self)

Implementors§