pub enum RetryCondition {
Timeout,
ConnectionError,
HttpStatus(u16),
RateLimit,
ServerError,
AuthenticationError,
All,
}Expand description
Conditions under which to retry a request
Variants§
Timeout
Retry on network timeouts
ConnectionError
Retry on connection failures
HttpStatus(u16)
Retry on specific HTTP status codes
RateLimit
Retry on rate limiting (429)
ServerError
Retry on server errors (5xx)
AuthenticationError
Retry on authentication errors (401)
All
Retry on all retriable errors
Trait Implementations§
Source§impl Clone for RetryCondition
impl Clone for RetryCondition
Source§fn clone(&self) -> RetryCondition
fn clone(&self) -> RetryCondition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RetryCondition
impl Debug for RetryCondition
Source§impl PartialEq for RetryCondition
impl PartialEq for RetryCondition
Source§fn eq(&self, other: &RetryCondition) -> bool
fn eq(&self, other: &RetryCondition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RetryCondition
Auto Trait Implementations§
impl Freeze for RetryCondition
impl RefUnwindSafe for RetryCondition
impl Send for RetryCondition
impl Sync for RetryCondition
impl Unpin for RetryCondition
impl UnsafeUnpin for RetryCondition
impl UnwindSafe for RetryCondition
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