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§
Required Methods§
Sourcefn make_backoff(&self) -> Self::Backoff
fn make_backoff(&self) -> Self::Backoff
Constructs a new backoff type.
Implementors§
Source§impl<R> MakeBackoff for ExponentialBackoffMaker<R>
Available on crate feature util-tokio only.
impl<R> MakeBackoff for ExponentialBackoffMaker<R>
Available on crate feature
util-tokio only.