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
0: Error
ASN1Decode(ASN1DecodeErr)
Tuple Fields
ASN1Encode(ASN1EncodeErr)
Tuple Fields
KeyIdDecode(FromHexError)
Tuple Fields
0: FromHexError
KeyNotFound
UnexpectedKeyType(CK_KEY_TYPE)
Tuple Fields
0: CK_KEY_TYPE
ExpectedEcPointOctetString
EcPointEmpty
AttributeNotFound(CK_ATTRIBUTE_TYPE)
Tuple Fields
InvalidEcParams
UserPinRequired(String)
Tuple Fields
0: String
NoSuchSlotIndex(usize)
Tuple Fields
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