[][src]Enum yubihsm::client::ErrorKind

pub enum ErrorKind {
    AuthenticationError,
    ClosedSessionError,
    ConnectorError {
        kind: ErrorKind,
    },
    CreateFailed,
    DeviceError {
        kind: ErrorKind,
    },
    ProtocolError,
    ResponseError,
}

Client error kinds

Variants

AuthenticationError

Couldn't authenticate session

ClosedSessionError

Session is closed

ConnectorError

Errors with the connection to the HSM

Fields of ConnectorError

kind: ErrorKind

Connection error kind

CreateFailed

Couldn't create session

DeviceError

Errors originating in the HSM device

Fields of DeviceError

kind: ErrorKind

HSM error kind

ProtocolError

Protocol error occurred

ResponseError

Error response from HSM we can't further specify

Methods

impl ErrorKind[src]

pub fn device_error(self) -> Option<ErrorKind>[src]

Get the device error, if this is a device error

Trait Implementations

impl Clone for ErrorKind[src]

impl Copy for ErrorKind[src]

impl Eq for ErrorKind[src]

impl PartialEq<ErrorKind> for ErrorKind[src]

impl Display for ErrorKind[src]

impl Debug for ErrorKind[src]

Auto Trait Implementations

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self