Enum ic_identity_hsm::HardwareIdentityError [−][src]
pub enum HardwareIdentityError {
PKCS11(Error),
ASN1Decode(ASN1DecodeErr),
ASN1Encode(ASN1EncodeErr),
KeyIdDecode(FromHexError),
KeyNotFound,
UnexpectedKeyType(CK_KEY_TYPE),
ExpectedEcPointOctetString,
EcPointEmpty,
AttributeNotFound(CK_ATTRIBUTE_TYPE),
InvalidEcParams {
expected: Vec<u8>,
actual: Vec<u8>,
},
UserPinRequired(String),
NoSuchSlotIndex(usize),
}
Expand description
An error happened related to a HardwareIdentity.
Variants
PKCS11(Error)
Tuple Fields of PKCS11
0: Error
ASN1Decode(ASN1DecodeErr)
Tuple Fields of ASN1Decode
ASN1Encode(ASN1EncodeErr)
Tuple Fields of ASN1Encode
KeyIdDecode(FromHexError)
Tuple Fields of KeyIdDecode
0: FromHexError
UnexpectedKeyType(CK_KEY_TYPE)
Tuple Fields of UnexpectedKeyType
0: CK_KEY_TYPE
AttributeNotFound(CK_ATTRIBUTE_TYPE)
Tuple Fields of AttributeNotFound
UserPinRequired(String)
Tuple Fields of UserPinRequired
0: String
NoSuchSlotIndex(usize)
Tuple Fields of NoSuchSlotIndex
0: usize
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for HardwareIdentityError
impl Send for HardwareIdentityError
impl Sync for HardwareIdentityError
impl Unpin for HardwareIdentityError
impl !UnwindSafe for HardwareIdentityError
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more