Struct aws_smithy_runtime_api::client::retries::RetryClassifiers
source · pub struct RetryClassifiers { /* private fields */ }Implementations§
source§impl RetryClassifiers
impl RetryClassifiers
pub fn new() -> Self
pub fn with_classifier( self, retry_classifier: impl ClassifyRetry + 'static ) -> Self
Trait Implementations§
source§impl ClassifyRetry for RetryClassifiers
impl ClassifyRetry for RetryClassifiers
source§fn classify_retry(
&self,
error: &OrchestratorError<Error>
) -> Option<RetryReason>
fn classify_retry( &self, error: &OrchestratorError<Error> ) -> 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.Auto 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