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

pub enum Error {
    ConnectionClosed(Option<CloseFrame<'static>>),
    Io(Error),
    Tls(Error),
    Capacity(Cow<'static, str>),
    Protocol(Cow<'static, str>),
    SendQueueFull(Message),
    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

Message send queue full

UTF coding error

Invlid URL.

HTTP error.

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter. Read more

impl Display for Error
[src]

Formats the value using the given formatter. Read more

impl ErrorTrait for Error
[src]

This method is soft-deprecated. 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<Role: HandshakeRole> From<Error> for HandshakeError<Role>
[src]

Performs the conversion.

impl NonBlockingError for Error
[src]

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

Auto Trait Implementations

impl Send for Error

impl Sync for Error