pub enum HttpError {
ConnectionFailed(String),
DnsFailure(String),
TlsError(String),
ServerError(u16, String),
ReadError(String),
InvalidRequest(String),
RetriesExhausted {
attempts: u32,
},
}Variants§
ConnectionFailed(String)
Could not establish connection.
DnsFailure(String)
DNS resolution failed.
TlsError(String)
TLS/SSL error.
ServerError(u16, String)
Server returned an error status.
ReadError(String)
Response body could not be read.
InvalidRequest(String)
Request was malformed.
RetriesExhausted
All retries exhausted.
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