Enum tungstenite::error::Error [] [src]

pub enum Error {
    ConnectionClosed(Option<CloseFrame<'static>>),
    Io(Error),
    Tls(Error),
    Capacity(Cow<'static, str>),
    Protocol(Cow<'static, str>),
    Utf8,
    Url(Cow<'static, str>),
    Http(u16),
}

Possible WebSocket errors

Variants

WebSocket connection closed (normally)

Input-output error

TLS error

Buffer capacity exhausted

Protocol violation

UTF coding error

Invlid URL.

HTTP error.

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter.

impl Display for Error
[src]

Formats the value using the given formatter. Read more

impl ErrorTrait for Error
[src]

A short description of the error. Read more

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

impl From<Error> for Error
[src]

Performs the conversion.

impl From<Utf8Error> for Error
[src]

Performs the conversion.

impl From<FromUtf8Error> for Error
[src]

Performs the conversion.

impl From<Error> for Error
[src]

Performs the conversion.

impl From<Error> for Error
[src]

Performs the conversion.

impl NonBlockingError for Error
[src]

Convert WouldBlock to None and don't touch other errors.