pub trait BackoffPolicy:
Send
+ Sync
+ Debug {
// Required method
fn on_failure(&self, loop_start: Instant, attempt_count: u32) -> Duration;
}Expand description
Defines the trait implemented by all backoff strategies.
pub trait BackoffPolicy:
Send
+ Sync
+ Debug {
// Required method
fn on_failure(&self, loop_start: Instant, attempt_count: u32) -> Duration;
}Defines the trait implemented by all backoff strategies.