#[non_exhaustive]pub enum HttpError {
Url(String),
Net(NetError),
Tls(String),
Bad,
TooLarge,
File,
Cancelled,
Redirect(String),
Proxy(u16),
Encoding,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Url(String)
not an http(s) URL, or https without a connector
Net(NetError)
Tls(String)
the TLS layer refused (certificate, handshake)
Bad
a malformed answer
TooLarge
an answer over the size limit
File
(download) the target file could not be created, written or put in place
Cancelled
(download) cancelled through the Ctl, or the future was dropped
Redirect(String)
a redirect that is not followed: from https to http, a Location that is not a URL, more than Client::redirects of them
Proxy(u16)
the proxy refused the tunnel (its status; 407: it wants other credentials)
Encoding
the body does not decode as its Content-Encoding says
Trait Implementations§
impl Eq for HttpError
impl StructuralPartialEq for HttpError
Auto Trait Implementations§
impl Forget for HttpError
impl Freeze for HttpError
impl Move for HttpError
impl RefUnwindSafe for HttpError
impl Send for HttpErrorwhere
RawVecInner: Send,
impl Sync for HttpErrorwhere
RawVecInner: Sync,
impl Unpin for HttpError
impl UnsafeUnpin for HttpError
impl UnwindSafe for HttpErrorwhere
RawVecInner: UnwindSafe,
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