Trait reqwest_retry::RetryPolicy
source · [−]pub trait RetryPolicy {
fn should_retry(&self, n_past_retries: u32) -> RetryDecision;
}
Required Methods
fn 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.