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),
}

An error happened related to a HardwareIdentity.

Variants

PKCS11(Error)
ASN1Decode(ASN1DecodeErr)
ASN1Encode(ASN1EncodeErr)
KeyIdDecode(FromHexError)
KeyNotFound
UnexpectedKeyType(CK_KEY_TYPE)
ExpectedEcPointOctetString
EcPointEmpty
AttributeNotFound(CK_ATTRIBUTE_TYPE)
InvalidEcParams

Fields of InvalidEcParams

expected: Vec<u8>actual: Vec<u8>
UserPinRequired(String)
NoSuchSlotIndex(usize)

Trait Implementations

impl Debug for HardwareIdentityError[src]

impl Display for HardwareIdentityError[src]

impl Error for HardwareIdentityError[src]

impl From<ASN1EncodeErr> for HardwareIdentityError[src]

impl From<Error> for HardwareIdentityError[src]

impl From<FromHexError> for HardwareIdentityError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,