Enum routerify_ws::WebsocketError [−][src]
pub enum WebsocketError {
Upgrade(Box<dyn Error + Send + Sync>),
MessageReceive(Box<dyn Error + Send + Sync>),
ReadyStatus(Box<dyn Error + Send + Sync>),
MessageSend(Box<dyn Error + Send + Sync>),
MessageFlush(Box<dyn Error + Send + Sync>),
DecodeText(Box<dyn Error + Send + Sync>),
DecodeJson(Box<dyn Error + Send + Sync>),
EncodeJson(Box<dyn Error + Send + Sync>),
WebSocketClose(Box<dyn Error + Send + Sync>),
// some variants omitted
}
Expand description
A set of errors that can occur during handling the websocket connections and in other operations.
Variants
Websocket upgrade error.
Failed to receive a message from the websocket connection.
Failed to check websocket’s ready status to send messages.
Failed to send a message to the websocket connection.
Failed to flush messages to the websocket connection.
Failed to decode message data as text.
Failed to decode the message data as JSON
in message.decode_json()
method.
Failed to convert a struct to JSON
in message.json()
method.
Failed to close the websocket connection.