#[non_exhaustive]pub enum Error {
}Expand description
Why a call failed or the client stopped.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Config(String)
The configuration cannot work: a URL that is not ws:// or
wss://, a header that cannot be sent.
Connect(String)
The server could not be reached or did not upgrade the connection.
Auth(String)
The server refused the credentials: at the upgrade (HTTP 401 or 403), or by closing with 4401, 4403 or 1008.
Timeout(String)
The server did not confirm the connection in time.
Encryption(String)
The end-to-end session could not be opened or went wrong.
Signing(String)
A signed message cannot be sent: no signing key, or no server key to sign for.
GaveUp(String)
The client gave up reconnecting.
NotConnected
Not connected now: the client is reconnecting.
Full
The send queue is full.
Closed
The client was closed.
Panicked
The application’s handler panicked: the client stopped.
Encode(String)
A message could not be encoded.
Decode(String)
A payload did not decode into the type asked for.
Trait Implementations§
impl Eq for Error
Source§impl Error for Error
impl Error for Error
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()