pub trait ClassifyRetry: Send + Sync + Debug {
    // Required methods
    fn classify_retry(
        &self,
        ctx: &InterceptorContext<Input, Output, Error>
    ) -> Option<RetryReason>;
    fn name(&self) -> &'static str;
}
Expand description

Classifies what kind of retry is needed for a given an InterceptorContext.

Required Methods§

fn classify_retry( &self, ctx: &InterceptorContext<Input, Output, Error> ) -> Option<RetryReason>

Run this classifier against an error to determine if it should be retried. Returns Some(RetryKind) if the error should be retried; Otherwise returns None.

fn name(&self) -> &'static str

The name that this classifier should report for debugging purposes.

Implementations on Foreign Types§

§

impl<E> ClassifyRetry for SmithyErrorClassifier<E>where E: Error + Send + Sync + 'static,

§

fn classify_retry( &self, ctx: &InterceptorContext<Input, Output, Error> ) -> Option<RetryReason>

§

fn name(&self) -> &'static str

§

impl ClassifyRetry for HttpStatusCodeClassifier

§

fn classify_retry( &self, ctx: &InterceptorContext<Input, Output, Error> ) -> Option<RetryReason>

§

fn name(&self) -> &'static str

§

impl<E> ClassifyRetry for ModeledAsRetryableClassifier<E>where E: Error + ProvideErrorKind + Send + Sync + 'static,

§

fn classify_retry( &self, ctx: &InterceptorContext<Input, Output, Error> ) -> Option<RetryReason>

§

fn name(&self) -> &'static str

§

impl ClassifyRetry for AmzRetryAfterHeaderClassifier

§

fn classify_retry( &self, ctx: &InterceptorContext<Input, Output, Error> ) -> Option<RetryReason>

§

fn name(&self) -> &'static str

§

impl<E> ClassifyRetry for AwsErrorCodeClassifier<E>where E: Error + ProvideErrorMetadata + Send + Sync + 'static,

§

fn classify_retry( &self, ctx: &InterceptorContext<Input, Output, Error> ) -> Option<RetryReason>

§

fn name(&self) -> &'static str

Implementors§

§

impl ClassifyRetry for RetryClassifiers