pub struct APDUAnswer<B> { /* private fields */ }
Expand description

An APDU answer, whole last 2 bytes are interpreted as retcode

Implementations

Attempt to interpret the given slice as an APDU answer

Will return the answer’s payload

Will return the answer’s payload

Will attempt to interpret the error code as an APDUErrorCode, returning the code as is otherwise

Returns the raw return code

Trait Implementations

Formats the value using the given formatter. 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.

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.