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

pub enum WebSocketError {
    ProtocolError(&'static str),
    RequestError(&'static str),
    ResponseError(&'static str),
    DataFrameError(&'static str),
    NoDataAvailable,
    IoError(Error),
    HandshakeError(HandshakeError<TcpStream>),
    HttpError(HttpError),
    UrlError(ParseError),
    WebSocketUrlError(WSUrlErrorKind),
    SslError(SslError),
    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 Ssl Handshake error

An HTTP parsing error

A URL parsing error

A WebSocket URL error

An SSL error

A UTF-8 error

Trait Implementations

impl Debug for WebSocketError
[src]

[src]

Formats the value using the given formatter.

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<HandshakeError<TcpStream>> 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<SslError> for WebSocketError
[src]

[src]

Performs the conversion.

impl From<Utf8Error> for WebSocketError
[src]

[src]

Performs the conversion.

impl From<WSUrlErrorKind> for WebSocketError
[src]

[src]

Performs the conversion.