#[non_exhaustive]pub enum RequestFailure {
RateLimited,
Overloaded,
Transport,
Other,
}Expand description
Why an attempt failed, reduced to what a backoff decision can act on.
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.
RateLimited
The provider said “too many requests”.
Overloaded
The provider said it is busy and to come back.
Transport
Nothing usable came back: connection reset, DNS, TLS.
Other
Anything else — a rejected key, a malformed request, a stream that died after the provider had already started billing it.
Trait Implementations§
Source§impl Clone for RequestFailure
impl Clone for RequestFailure
impl Copy for RequestFailure
Source§impl Debug for RequestFailure
impl Debug for RequestFailure
impl Eq for RequestFailure
Source§impl PartialEq for RequestFailure
impl PartialEq for RequestFailure
impl StructuralPartialEq for RequestFailure
Auto Trait Implementations§
impl Forget for RequestFailure
impl Freeze for RequestFailure
impl Move for RequestFailure
impl RefUnwindSafe for RequestFailure
impl Send for RequestFailure
impl Sync for RequestFailure
impl Unpin for RequestFailure
impl UnsafeUnpin for RequestFailure
impl UnwindSafe for RequestFailure
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