Struct pcsc::ReaderState
[−]
[src]
#[repr(C)]pub struct ReaderState { /* fields omitted */ }
A structure for tracking the current state of card readers and cards.
Methods
impl ReaderState
[src]
fn new<T: Into<CString>>(name: T, current_state: State) -> ReaderState
Create a ReaderState for a card reader with a given presumed state.
fn name(&self) -> &CStr
The name of the card reader.
fn event_state(&self) -> State
The last reported state.
fn event_count(&self) -> u32
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()
.
fn sync_current_state(&mut self)
Sync the currently-known state to the last reported state.