Struct pcsc::ReaderState[][src]

#[repr(C)]
pub struct ReaderState { /* fields omitted */ }
Expand description

A structure for tracking the current state of card readers and cards.

This structure wraps SCARD_READERSTATE (pcsclite, MSDN).

Implementations

Create a ReaderState for a card reader with a given presumed state.

The name of the card reader.

The ATR (Answer To Reset) of the card inserted to the reader.

The last reported state.

The card event count.

The count is incremented for each card insertion or removal in the reader. This can be used to detect a card removal/insertion between two calls to Context::get_status_change().

Sync the currently-known state to the last reported state.

Trait Implementations

Executes the destructor for this type. 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

Performs the conversion.

Performs the conversion.

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.