Enum tungstenite::error::Error [−][src]
pub enum Error { ConnectionClosed(Option<CloseFrame<'static>>), Io(Error), Tls(Error), Capacity(Cow<'static, str>), Protocol(Cow<'static, str>), SendQueueFull(Message), 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
SendQueueFull(Message)
Message send queue full
Utf8
UTF coding error
Url(Cow<'static, str>)
Invlid URL.
Http(u16)
HTTP error.
Trait Implementations
impl Debug for Error
[src]
impl Debug for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for Error
[src]
impl Display for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl ErrorTrait for Error
[src]
impl ErrorTrait for Error
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
fn cause(&self) -> Option<&Error>
1.0.0
[src]The lower-level cause of this error, if any. Read more
impl From<Error> for Error
[src]
impl From<Error> for Error
impl From<Utf8Error> for Error
[src]
impl From<Utf8Error> for Error
impl From<FromUtf8Error> for Error
[src]
impl From<FromUtf8Error> for Error
fn from(_: FromUtf8Error) -> Self
[src]
fn from(_: FromUtf8Error) -> Self
Performs the conversion.
impl From<Error> for Error
[src]
impl From<Error> for Error
impl From<Error> for Error
[src]
impl From<Error> for Error
impl<Role: HandshakeRole> From<Error> for HandshakeError<Role>
[src]
impl<Role: HandshakeRole> From<Error> for HandshakeError<Role>
impl NonBlockingError for Error
[src]
impl NonBlockingError for Error
fn into_non_blocking(self) -> Option<Self>
[src]
fn into_non_blocking(self) -> Option<Self>
Convert WouldBlock to None and don't touch other errors.