pub struct ModeledAsRetryableClassifier<E> { /* private fields */ }
Expand description
A retry classifier for checking if an error is modeled as retryable.
Implementations§
source§impl<E> ModeledAsRetryableClassifier<E>
impl<E> ModeledAsRetryableClassifier<E>
sourcepub fn priority() -> RetryClassifierPriority
pub fn priority() -> RetryClassifierPriority
Return the priority of this retry classifier.
Trait Implementations§
source§impl<E> ClassifyRetry for ModeledAsRetryableClassifier<E>
impl<E> ClassifyRetry for ModeledAsRetryableClassifier<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 ModeledAsRetryableClassifier<E>
impl<E: Debug> Debug for ModeledAsRetryableClassifier<E>
source§impl<E: Default> Default for ModeledAsRetryableClassifier<E>
impl<E: Default> Default for ModeledAsRetryableClassifier<E>
source§fn default() -> ModeledAsRetryableClassifier<E>
fn default() -> ModeledAsRetryableClassifier<E>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<E> Freeze for ModeledAsRetryableClassifier<E>
impl<E> RefUnwindSafe for ModeledAsRetryableClassifier<E>where
E: RefUnwindSafe,
impl<E> Send for ModeledAsRetryableClassifier<E>where
E: Send,
impl<E> Sync for ModeledAsRetryableClassifier<E>where
E: Sync,
impl<E> Unpin for ModeledAsRetryableClassifier<E>where
E: Unpin,
impl<E> UnwindSafe for ModeledAsRetryableClassifier<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.