pub enum HttpErrorType {
ConnectionFailed,
Timeout,
RedirectFailed,
RequestBuildFailed,
BodyFailed,
ResponseDecodeFailed,
StatusError,
Unknown,
}
Expand description
Types of HTTP errors that can occur
Variants§
ConnectionFailed
HTTP request failed due to network connection issues
Timeout
HTTP request failed due to timeout
RedirectFailed
HTTP request failed due to redirect issues
RequestBuildFailed
HTTP request failed due to request building issues
BodyFailed
HTTP request failed due to response body issues
ResponseDecodeFailed
HTTP request succeeded but response body could not be decoded as JSON
StatusError
HTTP request failed with non-success status code
Unknown
Unknown HTTP error type
Trait Implementations§
Source§impl Debug for HttpErrorType
impl Debug for HttpErrorType
Source§impl PartialEq for HttpErrorType
impl PartialEq for HttpErrorType
impl Eq for HttpErrorType
impl StructuralPartialEq for HttpErrorType
Auto Trait Implementations§
impl Freeze for HttpErrorType
impl RefUnwindSafe for HttpErrorType
impl Send for HttpErrorType
impl Sync for HttpErrorType
impl Unpin for HttpErrorType
impl UnwindSafe for HttpErrorType
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<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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more