Enum websocket::result::WebSocketError [] [src]

pub enum WebSocketError {
    ProtocolError(&'static str),
    RequestError(&'static str),
    ResponseError(&'static str),
    DataFrameError(&'static str),
    NoDataAvailable,
    IoError(Error),
    HttpError(HttpError),
    UrlError(ParseError),
    WebSocketUrlError(WSUrlErrorKind),
    TlsError(TlsError),
    TlsHandshakeFailure,
    TlsHandshakeInterruption,
    Utf8Error(Utf8Error),
}

Represents a WebSocket error

Variants

A WebSocket protocol error

Invalid WebSocket request error

Invalid WebSocket response error

Invalid WebSocket data frame error

No data available

An input/output error

An HTTP parsing error

A URL parsing error

A WebSocket URL error

An SSL error

an ssl handshake failure

an ssl handshake interruption

A UTF-8 error

Trait Implementations

impl Debug for WebSocketError
[src]

[src]

Formats the value using the given formatter. Read more

impl Display for WebSocketError
[src]

[src]

Formats the value using the given formatter. Read more

impl Error for WebSocketError
[src]

[src]

A short description of the error. Read more

[src]

The lower-level cause of this error, if any. Read more

impl From<Error> for WebSocketError
[src]

[src]

Performs the conversion.

impl From<HttpError> for WebSocketError
[src]

[src]

Performs the conversion.

impl From<ParseError> for WebSocketError
[src]

[src]

Performs the conversion.

impl From<TlsError> for WebSocketError
[src]

[src]

Performs the conversion.

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

[src]

Performs the conversion.

impl From<Utf8Error> for WebSocketError
[src]

[src]

Performs the conversion.

impl From<HttpCodecError> for WebSocketError
[src]

[src]

Performs the conversion.

impl From<WSUrlErrorKind> for WebSocketError
[src]

[src]

Performs the conversion.

impl From<HyperIntoWsError> for WebSocketError
[src]

[src]

Performs the conversion.

Auto Trait Implementations