pub enum HelixError {
ReqwestError(Error),
RemoteError {
details: String,
},
SerializationError(Error),
InvalidURL(String),
}Expand description
Errors returned while building or executing a query request.
Variants§
ReqwestError(Error)
Transport-level failure talking to the server (connection refused,
timeout, TLS error, …), surfaced from reqwest.
RemoteError
The server responded with a non-200 status. details carries the
response body, or the status’ canonical reason phrase when no body is
available.
SerializationError(Error)
Failed to (de)serialize a request body or response payload.
InvalidURL(String)
The base URL passed to Client::new could not be parsed, or the
resolved query route was not a valid URL.
Trait Implementations§
Source§impl Debug for HelixError
impl Debug for HelixError
Source§impl Display for HelixError
impl Display for HelixError
Source§impl Error for HelixError
impl Error for HelixError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Error> for HelixError
impl From<Error> for HelixError
Auto Trait Implementations§
impl !RefUnwindSafe for HelixError
impl !UnwindSafe for HelixError
impl Freeze for HelixError
impl Send for HelixError
impl Sync for HelixError
impl Unpin for HelixError
impl UnsafeUnpin for HelixError
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