pub enum HttpErrorKind {
Show 14 variants
InvalidUrl,
BuildClient,
ProxyConfig,
ConnectTimeout,
ReadTimeout,
WriteTimeout,
RequestTimeout,
Transport,
Status,
Decode,
SseProtocol,
SseDecode,
Cancelled,
Other,
}Expand description
Category of HTTP errors.
Variants§
InvalidUrl
URL is invalid or cannot be resolved.
BuildClient
HTTP client construction failed.
ProxyConfig
Proxy configuration is invalid.
ConnectTimeout
Connect timeout.
ReadTimeout
Read timeout.
WriteTimeout
Write timeout.
RequestTimeout
Whole-request timeout (client/request-level deadline).
Transport
Transport-level request error.
Status
Non-success HTTP status.
Decode
Response decoding error.
SseProtocol
SSE protocol error.
SseDecode
SSE payload decoding error.
Cancelled
Request was cancelled or interrupted.
Other
Any other error.
Trait Implementations§
Source§impl Clone for HttpErrorKind
impl Clone for HttpErrorKind
Source§fn clone(&self) -> HttpErrorKind
fn clone(&self) -> HttpErrorKind
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 HttpErrorKind
impl Debug for HttpErrorKind
Source§impl PartialEq for HttpErrorKind
impl PartialEq for HttpErrorKind
impl Copy for HttpErrorKind
impl Eq for HttpErrorKind
impl StructuralPartialEq for HttpErrorKind
Auto Trait Implementations§
impl Freeze for HttpErrorKind
impl RefUnwindSafe for HttpErrorKind
impl Send for HttpErrorKind
impl Sync for HttpErrorKind
impl Unpin for HttpErrorKind
impl UnsafeUnpin for HttpErrorKind
impl UnwindSafe for HttpErrorKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.