xmpp-rs/sasl/src/error.rs

14 lines
248 B
Rust
Raw Normal View History

2017-02-27 15:08:09 +00:00
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)
}
}