pub trait MakeBackoff {
    type Backoff: Backoff;

    // Required method
    fn make_backoff(&mut self) -> Self::Backoff;
}
Available on crate feature util only.
Expand description

Trait used to construct Backoff trait implementors.

Required Associated Types§

source

type Backoff: Backoff

The backoff type produced by this maker.

Required Methods§

source

fn make_backoff(&mut self) -> Self::Backoff

Constructs a new backoff type.

Implementors§

source§

impl<R> MakeBackoff for ExponentialBackoffMaker<R>where R: Rng + Clone,

Available on crate feature util-tokio only.