Trait tower::retry::backoff::MakeBackoff

source ·
pub trait MakeBackoff {
    type Backoff: Backoff;

    // Required method
    fn make_backoff(&mut self) -> Self::Backoff;
}
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§