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

Tuple Fields of PKCS11

0: Error
ASN1Decode

Tuple Fields of ASN1Decode

0: ASN1DecodeErr
ASN1Encode

Tuple Fields of ASN1Encode

0: ASN1EncodeErr
KeyIdDecode

Tuple Fields of KeyIdDecode

0: FromHexError
KeyNotFound
UnexpectedKeyType

Tuple Fields of UnexpectedKeyType

0: CK_KEY_TYPE
ExpectedEcPointOctetString
EcPointEmpty
AttributeNotFound

Tuple Fields of AttributeNotFound

0: CK_ATTRIBUTE_TYPE
InvalidEcParams

Fields of InvalidEcParams

expected: Vec<u8>actual: Vec<u8>
UserPinRequired

Tuple Fields of UserPinRequired

0: String
NoSuchSlotIndex

Tuple Fields of NoSuchSlotIndex

0: usize

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.