Trait retry_policies::RetryPolicy

source ·
pub trait RetryPolicy {
    // Required method
    fn should_retry(
        &self,
        request_start_time: SystemTime,
        n_past_retries: u32
    ) -> RetryDecision;
}
Expand description

A policy for deciding whether and when to retry.

Required Methods§

source

fn should_retry( &self, request_start_time: SystemTime, n_past_retries: u32 ) -> RetryDecision

Determine if a task should be retried according to a retry policy.

Implementors§