Trait MakeBackoff

Source
pub trait MakeBackoff {
    type Backoff: Backoff;

    // Required method
    fn make_backoff(&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(&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.