pub enum DecthingsClientError {
Http(Error),
WebSocketConnect(Arc<Error>),
WebSocketWrite(Arc<Error>),
WebSocketRead(Arc<Error>),
ParseResponseFailed(Error),
InvalidMessage,
}
Variants§
Http(Error)
The HTTP request to Decthings failed unexpectedly, for example due to a network error. If Decthings returned an error, DecthingsRpcError::Rpc should have been returned instead.
WebSocketConnect(Arc<Error>)
Failed to connect websocket to Decthings.
WebSocketWrite(Arc<Error>)
Failed to write websocket data to Decthings.
WebSocketRead(Arc<Error>)
Failed to read websocket data from Decthings.
ParseResponseFailed(Error)
JSON parse failed for the data received from Decthings.
InvalidMessage
The data received by Decthings was invalid.
Trait Implementations§
source§impl Debug for DecthingsClientError
impl Debug for DecthingsClientError
source§impl Display for DecthingsClientError
impl Display for DecthingsClientError
source§impl Error for DecthingsClientError
impl Error for DecthingsClientError
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<E> From<DecthingsClientError> for DecthingsRpcError<E>
impl<E> From<DecthingsClientError> for DecthingsRpcError<E>
source§fn from(x: DecthingsClientError) -> Self
fn from(x: DecthingsClientError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DecthingsClientError
impl !RefUnwindSafe for DecthingsClientError
impl Send for DecthingsClientError
impl Sync for DecthingsClientError
impl Unpin for DecthingsClientError
impl !UnwindSafe for DecthingsClientError
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