Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion rust-symcrypt/src/errors.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
//! Friendly rust errors for SYMCRYPT_ERROR. For more info on SYMCRYPT_ERRORS please refer to symcrypt.h

use std::convert::From;
use std::error;
use std::fmt;
use symcrypt_sys;

/// `SymCryptError` is an enum that enumerates all of the errors from `SymCrypt`.
#[non_exhaustive]
#[derive(Debug, PartialEq)]
#[derive(Clone, Debug, PartialEq)]
pub enum SymCryptError {
NoError,
Unused,
Expand Down Expand Up @@ -110,3 +111,5 @@ impl fmt::Display for SymCryptError {
write!(f, "{}", message)
}
}

impl error::Error for SymCryptError {}
Loading