initial commit
This commit is contained in:
commit
353b2579ea
8 changed files with 522 additions and 0 deletions
13
sasl/src/error.rs
Normal file
13
sasl/src/error.rs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
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)
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue