pub enum HttpConnectionError {
Glimesh(GlimeshError),
Auth(AuthError),
BadStatus(u16),
Unknown(Error),
}Expand description
Errors that can occur using the http based connection
Variants§
Glimesh(GlimeshError)
A glimesh error ocurred
Auth(AuthError)
An auth error ocurred
BadStatus(u16)
A request returned a bad status code.
Unknown(Error)
Some other error occurred.
Trait Implementations§
Source§impl Debug for HttpConnectionError
impl Debug for HttpConnectionError
Source§impl Display for HttpConnectionError
impl Display for HttpConnectionError
Source§impl Error for HttpConnectionError
impl Error for HttpConnectionError
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<AuthError> for HttpConnectionError
impl From<AuthError> for HttpConnectionError
Source§impl From<Error> for HttpConnectionError
impl From<Error> for HttpConnectionError
Source§impl From<GlimeshError> for HttpConnectionError
impl From<GlimeshError> for HttpConnectionError
Source§fn from(source: GlimeshError) -> Self
fn from(source: GlimeshError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HttpConnectionError
impl RefUnwindSafe for HttpConnectionError
impl Send for HttpConnectionError
impl Sync for HttpConnectionError
impl Unpin for HttpConnectionError
impl UnwindSafe for HttpConnectionError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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