Enum tungstenite::error::Error
[−]
[src]
pub enum Error { ConnectionClosed(Option<CloseFrame<'static>>), Io(Error), Tls(Error), Capacity(Cow<'static, str>), Protocol(Cow<'static, str>), Utf8, Url(Cow<'static, str>), Http(u16), }
Possible WebSocket errors
Variants
ConnectionClosed(Option<CloseFrame<'static>>)
WebSocket connection closed (normally)
Io(Error)
Input-output error
Tls(Error)
TLS error
Capacity(Cow<'static, str>)
Buffer capacity exhausted
Protocol(Cow<'static, str>)
Protocol violation
Utf8
UTF coding error
Url(Cow<'static, str>)
Invlid URL.
Http(u16)
HTTP error.
Trait Implementations
impl Debug for Error
[src]
impl Display for Error
[src]
impl ErrorTrait for Error
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0
The lower-level cause of this error, if any. Read more
impl From<Error> for Error
[src]
impl From<Utf8Error> for Error
[src]
impl From<FromUtf8Error> for Error
[src]
fn from(_: FromUtf8Error) -> Self
Performs the conversion.