Enum Command

Source
pub enum Command {
    GetVersion,
    GetApplicationIds,
    SelectHsl,
    ReadAppInfo,
    ReadControlInfo,
    ReadPeriodPass,
    ReadStoredValue,
    ReadETicket,
    ReadHistory,
    ReadNext,
}
Expand description

A DESFire APDU command that the HSL card accepts.

Variants§

§

GetVersion

DESFire GetVersion command.

§

GetApplicationIds

DESFire command to return all installed application IDs on the card.

§

SelectHsl

DESFire Select Application command for selecting the HSL application on the card. Returns OkResponse on success.

§

ReadAppInfo

Command to read app info file, which contains application version, card name, etc.

§

ReadControlInfo

Command to read the control info file from the card.

§

ReadPeriodPass

Command to read the season pass file on the card.

§

ReadStoredValue

Command to read the stored value on the card.

§

ReadETicket

Command to read the active eTicket on the card.

§

ReadHistory

Command to read the 8 most recent transactions on the card.

§

ReadNext

Reads the remaining bytes-to-be-sent if a read request returned a MoreData response.

Trait Implementations§

Source§

impl Into<&[u8]> for Command

Source§

fn into(self) -> &'static [u8]

Converts this type into the (usually inferred) input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.