pub struct TransientErrorClassifier<E> { /* private fields */ }
Expand description
Classifies response, timeout, and connector errors as retryable or not.
Implementations§
source§impl<E> TransientErrorClassifier<E>
impl<E> TransientErrorClassifier<E>
sourcepub fn priority() -> RetryClassifierPriority
pub fn priority() -> RetryClassifierPriority
Return the priority of this retry classifier.
Trait Implementations§
source§impl<E> ClassifyRetry for TransientErrorClassifier<E>
impl<E> ClassifyRetry for TransientErrorClassifier<E>
source§fn classify_retry(&self, ctx: &InterceptorContext) -> RetryAction
fn classify_retry(&self, ctx: &InterceptorContext) -> RetryAction
Run this classifier on the
InterceptorContext
to determine if the previous request
should be retried. Returns a RetryAction
.source§fn priority(&self) -> RetryClassifierPriority
fn priority(&self) -> RetryClassifierPriority
The priority of this retry classifier. Read more
source§impl<E: Debug> Debug for TransientErrorClassifier<E>
impl<E: Debug> Debug for TransientErrorClassifier<E>
source§impl<E: Default> Default for TransientErrorClassifier<E>
impl<E: Default> Default for TransientErrorClassifier<E>
source§fn default() -> TransientErrorClassifier<E>
fn default() -> TransientErrorClassifier<E>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<E> Freeze for TransientErrorClassifier<E>
impl<E> RefUnwindSafe for TransientErrorClassifier<E>where
E: RefUnwindSafe,
impl<E> Send for TransientErrorClassifier<E>where
E: Send,
impl<E> Sync for TransientErrorClassifier<E>where
E: Sync,
impl<E> Unpin for TransientErrorClassifier<E>where
E: Unpin,
impl<E> UnwindSafe for TransientErrorClassifier<E>where
E: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.