Enum ws_tool::errors::WsError[][src]

pub enum WsError {
Show 13 variants InvalidUri(String), UnsupportedProxy(String), InvalidProxy(String), CertFileNotFound(String), LoadCertFailed(String), ConnectionFailed(String), TlsDnsFailed(String), IOError(String), HandShakeFailed(String), ProtocolError(ProtocolError), ProxyError(String), InvalidConnState(ConnectionState), UnsupportedFrame(OpCode),
}
Expand description

errors during handshake, read/write frame

Variants

InvalidUri(String)

Tuple Fields of InvalidUri

0: String
UnsupportedProxy(String)

Tuple Fields of UnsupportedProxy

0: String
InvalidProxy(String)

Tuple Fields of InvalidProxy

0: String
CertFileNotFound(String)

Tuple Fields of CertFileNotFound

0: String
LoadCertFailed(String)

Tuple Fields of LoadCertFailed

0: String
ConnectionFailed(String)

Tuple Fields of ConnectionFailed

0: String
TlsDnsFailed(String)

Tuple Fields of TlsDnsFailed

0: String
IOError(String)

Tuple Fields of IOError

0: String
HandShakeFailed(String)

Tuple Fields of HandShakeFailed

0: String
ProtocolError(ProtocolError)

Tuple Fields of ProtocolError

0: ProtocolError
ProxyError(String)

Tuple Fields of ProxyError

0: String
InvalidConnState(ConnectionState)

Tuple Fields of InvalidConnState

0: ConnectionState
UnsupportedFrame(OpCode)

Tuple Fields of UnsupportedFrame

0: OpCode

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.