pub enum ResponseError {
Io(Error),
InvalidUrl,
UnsupportedScheme,
Cancelled,
ThreadPanicked,
CommandFailed {
program: &'static str,
exit_code: Option<i32>,
stderr: String,
},
BadStatusCode(String),
GzipFailed {
exit_code: Option<i32>,
stderr: String,
},
Start(StartError),
}Expand description
Errors that can occur while running a request.
Variants§
Io(Error)
A local I/O error occurred.
InvalidUrl
The URL could not be parsed.
UnsupportedScheme
The URL scheme is unsupported.
Cancelled
The request was cancelled.
ThreadPanicked
The worker thread panicked.
CommandFailed
The backend command failed.
Fields
BadStatusCode(String)
The backend returned a non-numeric status code.
GzipFailed
Gzip decoding failed.
Fields
Start(StartError)
Download start failed.
Trait Implementations§
Source§impl Debug for ResponseError
impl Debug for ResponseError
Auto Trait Implementations§
impl Freeze for ResponseError
impl !RefUnwindSafe for ResponseError
impl Send for ResponseError
impl Sync for ResponseError
impl Unpin for ResponseError
impl UnsafeUnpin for ResponseError
impl !UnwindSafe for ResponseError
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