pub enum Error<ApiError> where
ApiError: CustomApiError, {
WebSocket(Error),
Network(Error),
InvalidUrl(String),
Disconnected,
Core(Error),
Api(ApiError),
ProtocolVersionMismatch,
}
Expand description
Errors related to working with Client
Variants
WebSocket(Error)
An error occurred from the WebSocket transport layer.
Network(Error)
An error occurred from networking.
InvalidUrl(String)
An invalid Url was provided.
Disconnected
The connection was interrupted.
Core(Error)
The connection was interrupted.
Api(ApiError)
An error from the custom API.
ProtocolVersionMismatch
The server is incompatible with this version of the client.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl<ApiError> !RefUnwindSafe for Error<ApiError>
impl<ApiError> !UnwindSafe for Error<ApiError>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more