pub enum RetryCause {
TransportError(String),
Status(u16),
Timeout(String),
}Expand description
The cause of a retry decision.
Variants§
TransportError(String)
A transport error occurred (connection refused, reset, etc.).
Status(u16)
A retryable HTTP status code was received.
Timeout(String)
A timeout occurred during a retryable phase.
Trait Implementations§
Source§impl Clone for RetryCause
impl Clone for RetryCause
Source§impl Debug for RetryCause
impl Debug for RetryCause
Source§impl Display for RetryCause
impl Display for RetryCause
impl Eq for RetryCause
Source§impl PartialEq for RetryCause
impl PartialEq for RetryCause
impl StructuralPartialEq for RetryCause
Auto Trait Implementations§
impl Forget for RetryCause
impl Freeze for RetryCause
impl Move for RetryCause
impl RefUnwindSafe for RetryCause
impl Send for RetryCause
impl Sync for RetryCause
impl Unpin for RetryCause
impl UnsafeUnpin for RetryCause
impl UnwindSafe for RetryCause
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