Enum tokio_xmpp::ProtocolError [−][src]
pub enum ProtocolError { Parser(ParserError), Parsers(ParsersError), NoTls, InvalidBindResponse, NoStreamNamespace, NoStreamId, InvalidToken, }
XMPP protocol-level error
Variants
Parser(ParserError)
XML parser error
Parsers(ParsersError)
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
Trait Implementations
impl From<ProtocolError> for Error
[src]
impl From<ProtocolError> for Error
fn from(err: ProtocolError) -> Error
[src]
fn from(err: ProtocolError) -> Error
Performs the conversion.
impl Debug for ProtocolError
[src]
impl Debug for ProtocolError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for ProtocolError
[src]
impl Display for ProtocolError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Error for ProtocolError
[src]
impl Error for ProtocolError
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
[src]
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl From<ParserError> for ProtocolError
[src]
impl From<ParserError> for ProtocolError
fn from(err: ParserError) -> ProtocolError
[src]
fn from(err: ParserError) -> ProtocolError
Performs the conversion.
impl From<ParsersError> for ProtocolError
[src]
impl From<ParsersError> for ProtocolError
fn from(err: ParsersError) -> ProtocolError
[src]
fn from(err: ParsersError) -> ProtocolError
Performs the conversion.
Auto Trait Implementations
impl Send for ProtocolError
impl Send for ProtocolError
impl Sync for ProtocolError
impl Sync for ProtocolError