update to sasl-rs 0.3.0, process error stanzas

This commit is contained in:
lumi 2017-03-07 18:19:09 +01:00
commit 9d59bd2f7e
9 changed files with 305 additions and 14 deletions

View file

@ -14,6 +14,8 @@ use minidom::Error as MinidomError;
use base64::Base64Error;
use components::sasl_error::SaslError;
/// An error which wraps a bunch of errors from different crates and the stdlib.
#[derive(Debug)]
pub enum Error {
@ -25,6 +27,7 @@ pub enum Error {
MinidomError(MinidomError),
Base64Error(Base64Error),
SaslError(Option<String>),
XmppSaslError(SaslError),
StreamError,
EndOfDocument,
}