Struct smartcard::logic::card::Card [] [src]

pub struct Card { /* fields omitted */ }

This struct represents a smartcard.

Methods

impl Card
[src]

Connect to a smartcard on the specified reader

Arguments

  • context - The resource manager context.
  • reader - The reader that contains the smartcard you want to connect to.
  • 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.

Get a pointer to the static PCI from the specified protocol

Reconnect to the smartcard

Arguments

  • init_type - How to reset the card.

Send a raw command to the smartcard.

Arguments

  • cmd - The cmd you want to send.
  • max_answer_size - The maximum size of the expected answer.

Trait Implementations

impl Drop for Card
[src]

Disconnect the card at the end