pub trait BackoffStrategy: Clone {
// Required method
fn backoff_duration(&self, repeats: u32) -> Duration;
}Expand description
A trait describing how long to backoff for each subsequent attempt
Required Methods§
fn backoff_duration(&self, repeats: u32) -> Duration
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.