[][src]Enum websocket::result::WebSocketOtherError

pub enum WebSocketOtherError {
    ProtocolError(&'static str),
    RequestError(&'static str),
    ResponseError(&'static str),
    StatusCodeError(StatusCode),
    HttpError(HttpError),
    UrlError(ParseError),
    IoError(Error),
    WebSocketUrlError(WSUrlErrorKind),
    TlsError(TlsError),
    TlsHandshakeFailure,
    TlsHandshakeInterruption,
}

Represents a WebSocket error while connecting

Variants

ProtocolError(&'static str)

A WebSocket protocol error

RequestError(&'static str)

Invalid WebSocket request error

ResponseError(&'static str)

Invalid WebSocket response error

StatusCodeError(StatusCode)

Received unexpected status code

HttpError(HttpError)

An HTTP parsing error

UrlError(ParseError)

A URL parsing error

IoError(Error)

An input/output error

WebSocketUrlError(WSUrlErrorKind)

A WebSocket URL error

TlsError(TlsError)

An SSL error

TlsHandshakeFailure

an ssl handshake failure

TlsHandshakeInterruption

an ssl handshake interruption

Trait Implementations

impl Debug for WebSocketOtherError[src]

impl Display for WebSocketOtherError[src]

impl Error for WebSocketOtherError[src]

impl From<Error> for WebSocketOtherError[src]

impl From<Error> for WebSocketOtherError[src]

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

impl From<HttpCodecError> for WebSocketOtherError[src]

impl From<HyperIntoWsError> for WebSocketOtherError[src]

impl From<ParseError> for WebSocketOtherError[src]

impl From<WSUrlErrorKind> for WebSocketOtherError[src]

impl From<WebSocketOtherError> 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<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<T> Typeable for T where
    T: Any