rustmax::tower::retry::backoff

Trait 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§