pub trait Delay: Send {
// Required method
fn next_delay(&mut self) -> Duration;
}Expand description
A retry delay strategy.
Implementations determine how long to wait before each retry attempt.
Required Methods§
Sourcefn next_delay(&mut self) -> Duration
fn next_delay(&mut self) -> Duration
Returns the delay before the next retry attempt.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".