diff options
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/src/error.rs b/src/error.rs index b5cf446..8cb6496 100644 --- a/src/error.rs +++ b/src/error.rs @@ -8,23 +8,12 @@ use crate::{jid::ParseError, stanza::sasl::Failure}; #[derive(Debug)] pub enum Error { Connection, - BadStream, - StartTlsUnavailable, - TlsNegotiation, Utf8Decode, - NoFeatures, - UnknownNamespace, - UnknownAttribute, - NoID, - NoType, - IDMismatch, - BindError, - ParseError, Negotiation, TlsRequired, - UnexpectedEnd, + AlreadyTls, + Unsupported, UnexpectedElement(peanuts::Element), - UnexpectedText, XML(peanuts::Error), SASL(SASLError), JID(ParseError), @@ -37,8 +26,6 @@ pub enum Error { pub enum SASLError { SASL(rsasl::prelude::SASLError), MechanismName(MechanismNameError), - NoChallenge, - NoSuccess, } impl From<rsasl::prelude::SASLError> for Error { |