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.