pub enum RetryDecision {
Success,
Retryable,
RetryAfter(Duration),
Fatal,
}Expand description
What to do with an HTTP attempt’s outcome.
Variants§
Success
Treat as success (2xx/3xx).
Retryable
Should be retried with normal exponential backoff.
RetryAfter(Duration)
Should be retried only after the specified duration (server-driven).
Fatal
Do not retry — surface immediately.
Trait Implementations§
Source§impl Debug for RetryDecision
impl Debug for RetryDecision
Source§impl PartialEq for RetryDecision
impl PartialEq for RetryDecision
impl Eq for RetryDecision
impl StructuralPartialEq for RetryDecision
Auto Trait Implementations§
impl Freeze for RetryDecision
impl RefUnwindSafe for RetryDecision
impl Send for RetryDecision
impl Sync for RetryDecision
impl Unpin for RetryDecision
impl UnwindSafe for RetryDecision
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
§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