pub enum Pkcs11Error {
SlotNotPresent(SlotId),
SignFailed(String),
DecryptFailed(String),
UnsupportedFunction(String),
BadPin,
}Expand description
Errors during PKCS#11 dispatch.
Variants§
SlotNotPresent(SlotId)
Slot not present.
SignFailed(String)
Threshold signing failed.
DecryptFailed(String)
Threshold decryption failed.
UnsupportedFunction(String)
Function not supported.
BadPin
PIN incorrect.
Trait Implementations§
Source§impl Debug for Pkcs11Error
impl Debug for Pkcs11Error
Source§impl Display for Pkcs11Error
impl Display for Pkcs11Error
Source§impl Error for Pkcs11Error
impl Error for Pkcs11Error
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for Pkcs11Error
impl RefUnwindSafe for Pkcs11Error
impl Send for Pkcs11Error
impl Sync for Pkcs11Error
impl Unpin for Pkcs11Error
impl UnsafeUnpin for Pkcs11Error
impl UnwindSafe for Pkcs11Error
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