Enum tokio_xmpp::Error[][src]

pub enum Error {
    Io(IoError),
    Connection(ConnecterError),
    Idna,
    JidParse(JidParseError),
    Protocol(ProtocolError),
    Auth(AuthError),
    Tls(TlsError),
    Disconnected,
    InvalidState,
}
Expand description

Top-level error type

Variants

Io(IoError)

Tuple Fields

I/O error

Connection(ConnecterError)

Tuple Fields

Error resolving DNS and establishing a connection

Idna

DNS label conversion error, no details available from module idna

JidParse(JidParseError)

Tuple Fields

0: JidParseError

Error parsing Jabber-Id

Protocol(ProtocolError)

Tuple Fields

Protocol-level error

Auth(AuthError)

Tuple Fields

Authentication error

Tls(TlsError)

Tuple Fields

TLS error

Disconnected

Connection closed

InvalidState

Shoud never happen

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

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.