Struct aws_smithy_runtime_api::client::retries::AlwaysRetry
source · pub struct AlwaysRetry(pub ErrorKind);Expand description
A retry classifier for testing purposes. This classifier always returns
Some(RetryReason::Error(ErrorKind)) where ErrorKind is the value provided when creating
this classifier.
Tuple Fields§
§0: ErrorKindTrait Implementations§
source§impl ClassifyRetry for AlwaysRetry
impl ClassifyRetry for AlwaysRetry
source§fn classify_retry(&self, error: &InterceptorContext) -> Option<RetryReason>
fn classify_retry(&self, error: &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.Auto Trait Implementations§
impl RefUnwindSafe for AlwaysRetry
impl Send for AlwaysRetry
impl Sync for AlwaysRetry
impl Unpin for AlwaysRetry
impl UnwindSafe for AlwaysRetry
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