pub trait RetryPolicy {
// Required method
fn should_retry(&self, n_past_retries: u32) -> RetryDecision;
}
Required Methods§
Sourcefn should_retry(&self, n_past_retries: u32) -> RetryDecision
fn should_retry(&self, n_past_retries: u32) -> RetryDecision
Determine if a task should be retried according to a retry policy.