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.