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