pub enum RetryClass {
Permanent,
Transient,
RateLimited {
retry_after: Option<Duration>,
},
}Expand description
Classification of an HTTP status for the retry gate.
Variants§
Permanent
Do not retry (4xx client errors, success, unknown permanent).
Transient
Retry with exponential full-jitter backoff (5xx / 408).
RateLimited
Retry respecting optional Retry-After (429, and 503 with header).
Trait Implementations§
Source§impl Clone for RetryClass
impl Clone for RetryClass
impl Copy for RetryClass
Source§impl Debug for RetryClass
impl Debug for RetryClass
impl Eq for RetryClass
Source§impl PartialEq for RetryClass
impl PartialEq for RetryClass
impl StructuralPartialEq for RetryClass
Auto Trait Implementations§
impl Freeze for RetryClass
impl RefUnwindSafe for RetryClass
impl Send for RetryClass
impl Sync for RetryClass
impl Unpin for RetryClass
impl UnsafeUnpin for RetryClass
impl UnwindSafe for RetryClass
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
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
Compare self to
key and return true if they are equal.