Enum bonsaidb::keystorage::s3::aws_sdk_s3::config::retry::RetryReason
#[non_exhaustive]pub enum RetryReason {
Error(ErrorKind),
Explicit(Duration),
}
Expand description
Classification result from ClassifyRetry
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Error(ErrorKind)
There was an unexpected error, and this is the kind of error so that it can be properly retried.
Explicit(Duration)
The server explicitly told us to back off by this amount of time.
Trait Implementations§
§impl Clone for RetryReason
impl Clone for RetryReason
§fn clone(&self) -> RetryReason
fn clone(&self) -> RetryReason
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 more§impl Debug for RetryReason
impl Debug for RetryReason
§impl PartialEq for RetryReason
impl PartialEq for RetryReason
§fn eq(&self, other: &RetryReason) -> bool
fn eq(&self, other: &RetryReason) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for RetryReason
impl StructuralEq for RetryReason
impl StructuralPartialEq for RetryReason
Auto Trait Implementations§
impl RefUnwindSafe for RetryReason
impl Send for RetryReason
impl Sync for RetryReason
impl Unpin for RetryReason
impl UnwindSafe for RetryReason
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.