Enum routerify_websocket::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
Upgrade(Box<dyn Error + Send + Sync>)
Websocket upgrade error.
MessageReceive(Box<dyn Error + Send + Sync>)
Failed to receive a message from the websocket connection.
ReadyStatus(Box<dyn Error + Send + Sync>)
Failed to check websocket’s ready status to send messages.
MessageSend(Box<dyn Error + Send + Sync>)
Failed to send a message to the websocket connection.
MessageFlush(Box<dyn Error + Send + Sync>)
Failed to flush messages to the websocket connection.
DecodeText(Box<dyn Error + Send + Sync>)
Failed to decode message data as text.
DecodeJson(Box<dyn Error + Send + Sync>)
Failed to decode the message data as JSON
in message.decode_json()
method.
EncodeJson(Box<dyn Error + Send + Sync>)
Failed to convert a struct to JSON
in message.json()
method.
WebSocketClose(Box<dyn Error + Send + Sync>)
Failed to close the websocket connection.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for WebsocketError
impl Send for WebsocketError
impl Sync for WebsocketError
impl Unpin for WebsocketError
impl !UnwindSafe for WebsocketError
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