pub enum HsmError {
Show 16 variants
LibraryLoad(String),
SlotAccess(String),
SessionCreate(String),
Login(String),
KeyGeneration(String),
SigningFailure(String),
KeyNotFound(String),
UnsupportedMechanism(String),
PqcNotSupported(String),
KeyWrap(String),
UriParse(String),
Cryptoki(Error),
Io(Error),
Utf8(Utf8Error),
UrlParse(ParseError),
HexDecode(FromHexError),
}Expand description
HSM operation errors.
Variants§
LibraryLoad(String)
Failed to load PKCS#11 library.
SlotAccess(String)
Slot access error.
SessionCreate(String)
Session creation failed.
Login(String)
Login failed.
KeyGeneration(String)
Key generation failed.
SigningFailure(String)
Signing operation failed.
KeyNotFound(String)
Key not found.
UnsupportedMechanism(String)
Unsupported mechanism.
PqcNotSupported(String)
Post-quantum cryptography not supported by HSM.
KeyWrap(String)
Key wrapping failed.
UriParse(String)
URI parsing error.
Cryptoki(Error)
Cryptoki library error.
Io(Error)
I/O error.
Utf8(Utf8Error)
UTF-8 conversion error.
UrlParse(ParseError)
URL parsing error.
HexDecode(FromHexError)
Hex decoding error.
Trait Implementations§
Source§impl Error for HsmError
impl Error for HsmError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<FromHexError> for HsmError
impl From<FromHexError> for HsmError
Source§fn from(source: FromHexError) -> Self
fn from(source: FromHexError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for HsmError
impl From<ParseError> for HsmError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HsmError
impl !RefUnwindSafe for HsmError
impl Send for HsmError
impl Sync for HsmError
impl Unpin for HsmError
impl UnsafeUnpin for HsmError
impl !UnwindSafe for HsmError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more