pub enum UemError {
Show 17 variants PendingOperation, UnsupportedFeature, LostCommunicationData, IncorrectParameter, Unexpected, Access, NotTransacted, IncorrectReaderName, ReaderConnectionFailed, ReaderNotConnected, ReaderAlreadyConnected, ReaderIncorrectResponse, ReaderResponseFailure, ReaderUnsuccessful(UemInternalErrorOption<Vec<u8>>), SamApdu, SamInvalidMac, SamAuthenticationFailed,
}
Expand description

General errors for library methods

Variants§

§

PendingOperation

Indicates that current operation is still in progress

§

UnsupportedFeature

Indicates that the requested feature is not supported yet

§

LostCommunicationData

Indicates that communication channel has detected a problem with data consistency

§

IncorrectParameter

A method parameter has incorrect value

§

Unexpected

Some unexpected error occured

§

Access

Access to the requested feature is not granted

§

NotTransacted

Failed to transact data with a remote device

§

IncorrectReaderName

The supplied reader name is incorrect

§

ReaderConnectionFailed

Reader connection has been unsuccessful

§

ReaderNotConnected

Reader is not in connected state

§

ReaderAlreadyConnected

Reader is already connected

§

ReaderIncorrectResponse

There were errors in a reader response data

§

ReaderResponseFailure

Waiting for a reader response timed out

§

ReaderUnsuccessful(UemInternalErrorOption<Vec<u8>>)

There is an internal error code received from a reader, followed by response vector (optional). Check error value.

§

SamApdu

There was an APDU responde error. It can be decoded using SAM documentation.

§

SamInvalidMac

Failed to check MAC signature while interacting with SAM module

§

SamAuthenticationFailed

Failed to authenticate with SAM module

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
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
👎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
🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to provide by using demand. Read more
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.