pub enum WsClientError {
Json(Error),
WebSocket(WsError),
RequestTimeout,
DuplicateRequestId,
InvalidRequestId,
InvalidSubscriptionId,
InvalidUnsubscribeResult,
InternalChannel,
}
Expand description
The error type for websocket rpc transport.
Variants§
Json(Error)
Json serialization/deserialization error.
WebSocket(WsError)
WebSocket protocol error.
RequestTimeout
WebSocket request timeout.
DuplicateRequestId
Duplicate request ID.
InvalidRequestId
Invalid Request ID.
InvalidSubscriptionId
Invalid Subscription ID.
InvalidUnsubscribeResult
Invalid Unsubscribe request result.
InternalChannel
Internal channel error
Trait Implementations§
Source§impl Debug for WsClientError
impl Debug for WsClientError
Source§impl Display for WsClientError
impl Display for WsClientError
Source§impl Error for WsClientError
impl Error for WsClientError
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 WsClientError
impl From<Error> for WsClientError
Auto Trait Implementations§
impl Freeze for WsClientError
impl !RefUnwindSafe for WsClientError
impl Send for WsClientError
impl Sync for WsClientError
impl Unpin for WsClientError
impl !UnwindSafe for WsClientError
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