xmpp-rs/sasl/src/error.rs
2017-02-27 16:08:09 +01:00

13 lines
248 B
Rust

use openssl::error::ErrorStack;
#[derive(Debug)]
pub enum Error {
OpenSslErrorStack(ErrorStack),
SaslError(String),
}
impl From<ErrorStack> for Error {
fn from(err: ErrorStack) -> Error {
Error::OpenSslErrorStack(err)
}
}