Struct aws_smithy_runtime_api::client::retries::RetryClassifiers
source · pub struct RetryClassifiers { /* private fields */ }
Expand description
Classifies an error into a RetryReason
.
Implementations§
source§impl RetryClassifiers
impl RetryClassifiers
sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new RetryClassifiers
.
sourcepub fn with_classifier(
self,
retry_classifier: impl ClassifyRetry + 'static
) -> Self
pub fn with_classifier( self, retry_classifier: impl ClassifyRetry + 'static ) -> Self
Adds a classifier to this collection.
Trait Implementations§
source§impl ClassifyRetry for RetryClassifiers
impl ClassifyRetry for RetryClassifiers
source§fn classify_retry(&self, ctx: &InterceptorContext) -> Option<RetryReason>
fn classify_retry(&self, ctx: &InterceptorContext) -> Option<RetryReason>
Run this classifier against an error to determine if it should be retried. Returns
Some(RetryKind)
if the error should be retried; Otherwise returns None
.source§impl Clone for RetryClassifiers
impl Clone for RetryClassifiers
source§fn clone(&self) -> RetryClassifiers
fn clone(&self) -> RetryClassifiers
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for RetryClassifiers
impl Send for RetryClassifiers
impl Sync for RetryClassifiers
impl Unpin for RetryClassifiers
impl !UnwindSafe for RetryClassifiers
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