Struct aws_runtime::retries::classifiers::AwsErrorCodeClassifier
source · pub struct AwsErrorCodeClassifier<E> { /* private fields */ }
Expand description
A retry classifier for determining if the response sent by an AWS service requires a retry.
Implementations§
source§impl<E> AwsErrorCodeClassifier<E>
impl<E> AwsErrorCodeClassifier<E>
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new AwsErrorCodeClassifier
sourcepub fn builder() -> AwsErrorCodeClassifierBuilder<E>
pub fn builder() -> AwsErrorCodeClassifierBuilder<E>
Return a builder that can create a new AwsErrorCodeClassifier
Trait Implementations§
source§impl<E> ClassifyRetry for AwsErrorCodeClassifier<E>
impl<E> ClassifyRetry for AwsErrorCodeClassifier<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 AwsErrorCodeClassifier<E>
impl<E: Debug> Debug for AwsErrorCodeClassifier<E>
Auto Trait Implementations§
impl<E> Freeze for AwsErrorCodeClassifier<E>
impl<E> RefUnwindSafe for AwsErrorCodeClassifier<E>where
E: RefUnwindSafe,
impl<E> Send for AwsErrorCodeClassifier<E>where
E: Send,
impl<E> Sync for AwsErrorCodeClassifier<E>where
E: Sync,
impl<E> Unpin for AwsErrorCodeClassifier<E>where
E: Unpin,
impl<E> UnwindSafe for AwsErrorCodeClassifier<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>
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.