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