pub struct ServiceClockSkewClassifier<E> { /* private fields */ }Expand description
Retry classifier for clock-skew errors.
A response is retryable when its error code is a known clock-skew code and the skew measured from the response exceeds the detection threshold.
Implementations§
Source§impl<E> ServiceClockSkewClassifier<E>
impl<E> ServiceClockSkewClassifier<E>
Trait Implementations§
Source§impl<E> ClassifyRetry for ServiceClockSkewClassifier<E>
impl<E> ClassifyRetry for ServiceClockSkewClassifier<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. Read moreSource§fn priority(&self) -> RetryClassifierPriority
fn priority(&self) -> RetryClassifierPriority
The priority of this retry classifier. Read more
Source§fn classify_retry_v2(
&self,
ctx: &InterceptorContext,
previous: &RetryAction,
) -> RetryAction
fn classify_retry_v2( &self, ctx: &InterceptorContext, previous: &RetryAction, ) -> RetryAction
Run this classifier with awareness of the
RetryAction accumulated by
earlier-running (lower-priority) classifiers. previous is the running
result of classification so far (RetryAction::NoActionIndicated until
some classifier sets one). Read moreSource§impl<E: Debug> Debug for ServiceClockSkewClassifier<E>
impl<E: Debug> Debug for ServiceClockSkewClassifier<E>
Auto Trait Implementations§
impl<E> Freeze for ServiceClockSkewClassifier<E>where
PhantomData<E>: Freeze,
impl<E> RefUnwindSafe for ServiceClockSkewClassifier<E>where
PhantomData<E>: RefUnwindSafe,
impl<E> Send for ServiceClockSkewClassifier<E>where
PhantomData<E>: Send,
impl<E> Sync for ServiceClockSkewClassifier<E>where
PhantomData<E>: Sync,
impl<E> Unpin for ServiceClockSkewClassifier<E>where
PhantomData<E>: Unpin,
impl<E> UnsafeUnpin for ServiceClockSkewClassifier<E>where
PhantomData<E>: UnsafeUnpin,
impl<E> UnwindSafe for ServiceClockSkewClassifier<E>where
PhantomData<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> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.