pub type Error = Error;
Aliased Type§
enum Error {
Io(Error),
JidParse(Error),
Protocol(ProtocolError),
Auth(AuthError),
Disconnected,
InvalidState,
Fmt(Error),
Utf8(Utf8Error),
Connection(Box<dyn ServerConnectorError>),
}
Variants§
Io(Error)
I/O error
JidParse(Error)
Error parsing Jabber-Id
Protocol(ProtocolError)
Protocol-level error
Auth(AuthError)
Authentication error
Disconnected
Connection closed
InvalidState
Should never happen
Fmt(Error)
Fmt error
Utf8(Utf8Error)
Utf8 error
Connection(Box<dyn ServerConnectorError>)
Error resolving DNS and/or establishing a connection, returned by a ServerConnector impl
Trait Implementations
§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)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()