#[non_exhaustive]pub enum RetryFailure {
Status(StatusCode),
Transport(HttpErrorKind),
}aws-base or azure-base or gcp-base only.Expand description
A normalized HTTP failure passed to a RetryPolicy
Backends wrap request failures in provider-specific Error variants.
Before invoking a policy, object_store reduces a supported failure to an
HTTP response status or transport error kind. Failures that cannot be
represented by this enum are returned without invoking the policy.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Status(StatusCode)
The HTTP status of a response that the backend classified as failed
This is usually a non-success status. Some services, including S3, can
report an error in the body of a successful response. In that case this
contains the actual successful status, such as 200 OK.
Transport(HttpErrorKind)
The request failed before producing a usable HTTP response
The kind distinguishes failures such as connection errors, timeouts, interrupted requests, and response decoding errors.
Trait Implementations§
Source§impl Clone for RetryFailure
impl Clone for RetryFailure
Source§fn clone(&self) -> RetryFailure
fn clone(&self) -> RetryFailure
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for RetryFailure
Source§impl Debug for RetryFailure
impl Debug for RetryFailure
impl Eq for RetryFailure
Source§impl PartialEq for RetryFailure
impl PartialEq for RetryFailure
impl StructuralPartialEq for RetryFailure
Auto Trait Implementations§
impl Freeze for RetryFailure
impl RefUnwindSafe for RetryFailure
impl Send for RetryFailure
impl Sync for RetryFailure
impl Unpin for RetryFailure
impl UnsafeUnpin for RetryFailure
impl UnwindSafe for RetryFailure
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> ⓘ
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> ⓘ
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 more