Struct pcsc::ReaderState [] [src]

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

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

This structure wraps SCARD_READERSTATE (pcsclite, MSDN).

Methods

impl ReaderState
[src]

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

The name of the card 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

impl Drop for ReaderState
[src]

A method called when the value goes out of scope. Read more