pub trait ClassifyRetry<T, E>: Clone {
    // Required method
    fn classify_retry(&self, response: Result<&T, &E>) -> RetryKind;
}
Expand description

Classifies what kind of retry is needed for a given response.

Required Methods§

source

fn classify_retry(&self, response: Result<&T, &E>) -> RetryKind

Run this classifier against a response to determine if it should be retried.

Object Safety§

This trait is not object safe.

Implementors§