Enum websocket::server::upgrade::HyperIntoWsError [] [src]

pub enum HyperIntoWsError {
    MethodNotGet,
    UnsupportedHttpVersion,
    UnsupportedWebsocketVersion,
    NoSecWsKeyHeader,
    NoWsUpgradeHeader,
    NoUpgradeHeader,
    NoWsConnectionHeader,
    NoConnectionHeader,
    Io(Error),
    Parsing(Error),
}

Errors that can occur when one tries to upgrade a connection to a websocket connection.

Variants

The HTTP method in a valid websocket upgrade request must be GET

Currently HTTP 2 is not supported

Currently only WebSocket13 is supported (RFC6455)

A websocket upgrade request must contain a key

A websocket upgrade request must ask to upgrade to a websocket

A websocket upgrade request must contain an Upgrade header

A websocket upgrade request's Connection header must be Upgrade

A websocket upgrade request must contain a Connection header

IO error from reading the underlying socket

Error while parsing an incoming request

Trait Implementations

impl From<HyperIntoWsError> for WebSocketError
[src]

[src]

Performs the conversion.

impl Debug for HyperIntoWsError
[src]

[src]

Formats the value using the given formatter. Read more

impl Display for HyperIntoWsError
[src]

[src]

Formats the value using the given formatter. Read more

impl Error for HyperIntoWsError
[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 HyperIntoWsError
[src]

[src]

Performs the conversion.

impl From<Error> for HyperIntoWsError
[src]

[src]

Performs the conversion.

impl From<HttpCodecError> for HyperIntoWsError
[src]

[src]

Performs the conversion.

Auto Trait Implementations