Struct smartcard::logic::reader::Reader
[−]
[src]
pub struct Reader { /* fields omitted */ }
The card reader is what is really plugged into the computer.
Methods
impl Reader
[src]
fn new(reader_name: String) -> Reader
Constructor for a reader. Prefer to select a reader from the list created by the context.
fn get_name(&self) -> &str
Get the name of this reader.
fn connect_to(
&self,
context: Arc<Context>,
share_mode: ShareMode,
preferred_protocol: Protocol
) -> Result<Card>
&self,
context: Arc<Context>,
share_mode: ShareMode,
preferred_protocol: Protocol
) -> Result<Card>
Connect to a smartcard on this reader
Arguments
context
- The resource manager context.share_mode
- How do you want to share the access to the smartcard.preferred_protocol
- What protocol do you want to use to connect to the smartcard.
Trait Implementations
impl Debug for Reader
[src]
impl Clone for Reader
[src]
fn clone(&self) -> Reader
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more