Enum tokio_xmpp::ProtocolError[][src]

pub enum ProtocolError {
    Parser(ParserError),
    Parsers(ParsersError),
    NoTls,
    InvalidBindResponse,
    NoStreamNamespace,
    NoStreamId,
    InvalidToken,
    InvalidStreamStart,
}
Expand description

XMPP protocol-level error

Variants

Parser(ParserError)

Tuple Fields

XML parser error

Parsers(ParsersError)

Tuple Fields

Error with expected stanza schema

NoTls

No TLS available

InvalidBindResponse

Invalid response to resource binding

NoStreamNamespace

No xmlns attribute in stream:stream

NoStreamId

No id attribute in stream:stream

InvalidToken

Encountered an unexpected XML token

InvalidStreamStart

Unexpected stream:stream (shouldn’t occur)

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.

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.