pub trait RetryStrategy: Send + Sync + Debug {
    // Required methods
    fn should_attempt_initial_request(
        &self,
        cfg: &ConfigBag
    ) -> Result<ShouldAttempt, BoxError>;
    fn should_attempt_retry(
        &self,
        context: &InterceptorContext,
        cfg: &ConfigBag
    ) -> Result<ShouldAttempt, BoxError>;
}

Required Methods§

Implementors§