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
Utf8UTF coding error
Url(Cow<'static, str>)Invlid URL.
Http(u16)HTTP error.
Trait Implementations
impl Debug for Error[src]
impl Debug for Errorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Display for Error[src]
impl Display for Errorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl ErrorTrait for Error[src]
impl ErrorTrait for Errorfn description(&self) -> &str[src]
fn description(&self) -> &strThis 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 Errorimpl From<Utf8Error> for Error[src]
impl From<Utf8Error> for Errorimpl From<FromUtf8Error> for Error[src]
impl From<FromUtf8Error> for Errorfn from(_: FromUtf8Error) -> Self[src]
fn from(_: FromUtf8Error) -> SelfPerforms the conversion.
impl From<Error> for Error[src]
impl From<Error> for Errorimpl From<Error> for Error[src]
impl From<Error> for Errorimpl<Role: HandshakeRole> From<Error> for HandshakeError<Role>[src]
impl<Role: HandshakeRole> From<Error> for HandshakeError<Role>impl NonBlockingError for Error[src]
impl NonBlockingError for Errorfn into_non_blocking(self) -> Option<Self>[src]
fn into_non_blocking(self) -> Option<Self>Convert WouldBlock to None and don't touch other errors.