pub enum ClientRequestError {
Axum(Error),
Close,
Json(Error),
UnsupportedType(Message),
}
Expand description
An error derived from a client’s request.
Variants§
Axum(Error)
An error originating from Axum
Close
The socket is closed
Json(Error)
Message received was not JSON
UnsupportedType(Message)
Unsupported message type (not JSON)
Trait Implementations§
source§impl Debug for ClientRequestError
impl Debug for ClientRequestError
source§impl Display for ClientRequestError
impl Display for ClientRequestError
source§impl Error for ClientRequestError
impl Error for ClientRequestError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 ClientRequestError
impl From<Error> for ClientRequestError
Auto Trait Implementations§
impl !RefUnwindSafe for ClientRequestError
impl Send for ClientRequestError
impl Sync for ClientRequestError
impl Unpin for ClientRequestError
impl !UnwindSafe for ClientRequestError
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