pub enum HttpError {
InvalidUrl,
DnsError(DnsError),
TcpError(TcpError),
SendTimeout,
ReceiveTimeout,
HttpStatus {
code: u16,
reason: String,
},
InvalidResponse,
ResponseTooLarge,
ConnectionClosed,
HttpsNotSupported,
}Expand description
HTTP-specific errors.
Variants§
InvalidUrl
Invalid URL
DnsError(DnsError)
DNS resolution failed
TcpError(TcpError)
TCP connection failed
SendTimeout
Send timeout
ReceiveTimeout
Receive timeout
HttpStatus
HTTP status error (non-2xx)
InvalidResponse
Invalid HTTP response
ResponseTooLarge
Response too large
ConnectionClosed
Connection closed unexpectedly
HttpsNotSupported
HTTPS not supported
Trait Implementations§
Source§impl From<HttpError> for DownloadError
impl From<HttpError> for DownloadError
Source§impl From<HttpError> for StateError
impl From<HttpError> for StateError
impl Eq for HttpError
impl StructuralPartialEq for HttpError
Auto Trait Implementations§
impl Freeze for HttpError
impl RefUnwindSafe for HttpError
impl Send for HttpError
impl Sync for HttpError
impl Unpin 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