Enum soketto::handshake::Error [−][src]
#[non_exhaustive]
pub enum Error {
Io(Error),
UnsupportedHttpVersion,
InvalidRequestMethod,
HeaderNotFound(String),
UnexpectedHeader(String),
InvalidSecWebSocketAccept,
UnsolicitedExtension,
UnsolicitedProtocol,
Extension(BoxedError),
Http(BoxedError),
Utf8(Utf8Error),
}Enumeration of possible handshake errors.
Variants (Non-exhaustive)
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Io(Error)An I/O error has been encountered.
An HTTP version =/= 1.1 was encountered.
The handshake request was not a GET request.
HeaderNotFound(String)An HTTP header has not been present.
UnexpectedHeader(String)An HTTP header value was not expected.
The Sec-WebSocket-Accept header value did not match.
The server returned an extension we did not ask for.
The server returned a protocol we did not ask for.
Extension(BoxedError)An extension produced an error while encoding or decoding.
Http(BoxedError)The HTTP entity could not be parsed successfully.
Utf8(Utf8Error)UTF-8 decoding failed.