[][src]Enum routerify_websocket::WebsocketError

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
}

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

impl Debug for WebsocketError[src]

impl Display for WebsocketError[src]

impl Eq for WebsocketError[src]

impl Error for WebsocketError[src]

impl PartialEq<WebsocketError> for WebsocketError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<E> ErrorExt for E where
    E: 'static + Error + Send + Sync
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,