pub enum WebsocketConnectionError {
Glimesh(GlimeshError),
Auth(AuthError),
QueryParamSerialization(Error),
SerdeJson(Error),
Tungstenite(Error),
SendError(SendError<Message>),
Timeout(Elapsed),
AlreadyConnected,
SocketClosed,
Unknown(Error),
}
Expand description
Errors that can occur using the websocket based connection
Variants§
Glimesh(GlimeshError)
A glimesh error ocurred
Auth(AuthError)
An auth error ocurred
QueryParamSerialization(Error)
Failed to serialize query param
SerdeJson(Error)
Failed to (de)serialize a json payload
Tungstenite(Error)
Websocket negotiating failure
SendError(SendError<Message>)
Socket message sender channel likely closed.
Timeout(Elapsed)
Request sent over the socket reached its timeout before hearing a response.
AlreadyConnected
connect() was called on a socket before it released the resources used in the previous connection attempt.
SocketClosed
Attempted to send or receive on a closed connection
Unknown(Error)
Some other error occurred.
Trait Implementations§
source§impl Debug for WebsocketConnectionError
impl Debug for WebsocketConnectionError
source§impl Display for WebsocketConnectionError
impl Display for WebsocketConnectionError
source§impl Error for WebsocketConnectionError
impl Error for WebsocketConnectionError
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<AuthError> for WebsocketConnectionError
impl From<AuthError> for WebsocketConnectionError
source§impl From<Elapsed> for WebsocketConnectionError
impl From<Elapsed> for WebsocketConnectionError
source§impl From<Error> for WebsocketConnectionError
impl From<Error> for WebsocketConnectionError
source§impl From<Error> for WebsocketConnectionError
impl From<Error> for WebsocketConnectionError
source§impl From<Error> for WebsocketConnectionError
impl From<Error> for WebsocketConnectionError
source§impl From<Error> for WebsocketConnectionError
impl From<Error> for WebsocketConnectionError
source§impl From<GlimeshError> for WebsocketConnectionError
impl From<GlimeshError> for WebsocketConnectionError
source§fn from(source: GlimeshError) -> Self
fn from(source: GlimeshError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for WebsocketConnectionError
impl Send for WebsocketConnectionError
impl Sync for WebsocketConnectionError
impl Unpin for WebsocketConnectionError
impl !UnwindSafe for WebsocketConnectionError
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere T: Error + 'static,
§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.