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
MethodNotGet
The HTTP method in a valid websocket upgrade request must be GET
UnsupportedHttpVersion
Currently HTTP 2 is not supported
UnsupportedWebsocketVersion
Currently only WebSocket13 is supported (RFC6455)
NoSecWsKeyHeader
A websocket upgrade request must contain a key
NoWsUpgradeHeader
A websocket upgrade request must ask to upgrade to a websocket
NoUpgradeHeader
A websocket upgrade request must contain an Upgrade
header
NoWsConnectionHeader
A websocket upgrade request's Connection
header must be Upgrade
NoConnectionHeader
A websocket upgrade request must contain a Connection
header
Io(Error)
IO error from reading the underlying socket
Parsing(Error)
Error while parsing an incoming request
Trait Implementations
impl From<HyperIntoWsError> for WebSocketError
[src]
fn from(err: HyperIntoWsError) -> WebSocketError
[src]
Performs the conversion.
impl Debug for HyperIntoWsError
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Display for HyperIntoWsError
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl Error for HyperIntoWsError
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
[src]
The lower-level cause of this error, if any. Read more
impl From<Error> for HyperIntoWsError
[src]
impl From<Error> for HyperIntoWsError
[src]
impl From<HttpCodecError> for HyperIntoWsError
[src]
fn from(src: HttpCodecError) -> Self
[src]
Performs the conversion.