Skip to main content

Delay

Trait Delay 

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

Source

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".

Implementors§