Enum yubihsm::ResponseCode[][src]

pub enum ResponseCode {
    Success(CommandCode),
    MemoryError,
    InitError,
    NetError,
    ConnectorNotFound,
    InvalidParams,
    WrongLength,
    BufferTooSmall,
    CryptogramMismatch,
    AuthSessionError,
    MACMismatch,
    DeviceOK,
    DeviceInvalidCommand,
    DeviceInvalidData,
    DeviceInvalidSession,
    DeviceAuthFail,
    DeviceSessionsFull,
    DeviceSessionFailed,
    DeviceStorageFailed,
    DeviceWrongLength,
    DeviceInvalidPermission,
    DeviceLogFull,
    DeviceObjNotFound,
    DeviceIDIllegal,
    DeviceInvalidOTP,
    DeviceDemoMode,
    DeviceCmdUnexecuted,
    GenericError,
    DeviceObjectExists,
    ConnectorError,
}

Codes associated with HSM responses

Variants

Successful response for the given command type

HSM memory error (or generic error)

Initialization error

Network error

Couldn't find connector

Invalid parameters

Wrong length

Buffer is too small

Cryptogram mismatches

Session auth error

MAC mismatch

OK (HSM)

Invalid command (HSM)

Invalid data (HSM)

Invalid session (HSM)

Authentication failure (HSM)

Sessions full (HSM)

Session failed (HSM)

Storage failed (HSM)

Wrong length (HSM)

Invalid permissions (HSM)

Audit log full (HSM)

Object not found (HSM)

ID illegal (HSM)

Invalid OTP (HSM)

Demo mode (HSM)

Command unexecuted

Generic error

Object already exists

Connector error

Methods

impl ResponseCode
[src]

Convert an unsigned byte into a ResponseCode (if valid)

Convert a ResponseCode back into its original byte form

Is this a successful response?

Is this an error response?

Trait Implementations

impl Copy for ResponseCode
[src]

impl Clone for ResponseCode
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ResponseCode
[src]

Formats the value using the given formatter. Read more

impl Eq for ResponseCode
[src]

impl PartialEq for ResponseCode
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Serialize for ResponseCode
[src]

Serialize this value into the given Serde serializer. Read more

impl<'de> Deserialize<'de> for ResponseCode
[src]

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations