pub enum RetryableError {
Network,
RateLimit,
Timeout,
ServerError,
All,
}Expand description
Types of errors that can be retried.
Variants§
Network
Network or connection errors.
RateLimit
Rate limit errors (HTTP 429).
Timeout
Timeout errors.
ServerError
Server errors (HTTP 5xx).
All
All errors are retryable.
Trait Implementations§
Source§impl Clone for RetryableError
impl Clone for RetryableError
Source§fn clone(&self) -> RetryableError
fn clone(&self) -> RetryableError
Returns a duplicate of the value. Read more
1.0.0 · 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 RetryableError
impl Debug for RetryableError
Source§impl PartialEq for RetryableError
impl PartialEq for RetryableError
impl Eq for RetryableError
impl StructuralPartialEq for RetryableError
Auto Trait Implementations§
impl Freeze for RetryableError
impl RefUnwindSafe for RetryableError
impl Send for RetryableError
impl Sync for RetryableError
impl Unpin for RetryableError
impl UnsafeUnpin for RetryableError
impl UnwindSafe for RetryableError
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