Enum gloo_net::websocket::WebSocketError
source · #[non_exhaustive]
pub enum WebSocketError {
ConnectionError,
ConnectionClose(CloseEvent),
MessageSendError(JsError),
}
Available on crate feature
websocket
only.Expand description
Error returned by WebSocket
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ConnectionError
The error
event
ConnectionClose(CloseEvent)
The close
event
MessageSendError(JsError)
Message failed to send.
Trait Implementations§
source§impl Debug for WebSocketError
impl Debug for WebSocketError
source§impl Display for WebSocketError
impl Display for WebSocketError
source§impl Error for WebSocketError
impl Error for WebSocketError
1.30.0 · 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()