pub trait Strategy: MaybeSend + MaybeSync {
// Required method
fn backoff(&self, attempts: usize, time_spent: Instant) -> Option<Duration>;
}Expand description
The strategy interface
pub trait Strategy: MaybeSend + MaybeSync {
// Required method
fn backoff(&self, attempts: usize, time_spent: Instant) -> Option<Duration>;
}The strategy interface