pub enum HttpError {
Status(u16),
Transport(String),
}Expand description
A classified HTTP failure so the retry loop knows whether to back off.
Variants§
Status(u16)
A non-success HTTP status (e.g. 401, 404, 429, 503).
Transport(String)
A transport-level failure (DNS, TLS, connection reset, timeout, …).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HttpError
impl RefUnwindSafe for HttpError
impl Send for HttpError
impl Sync for HttpError
impl Unpin for HttpError
impl UnsafeUnpin for HttpError
impl UnwindSafe for HttpError
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