pub trait Transport {
fn call(&mut self, instruction: u8, data: &[u8]) -> Result<Vec<u8>>;
fn call_iso(
&mut self,
class: u8,
instruction: u8,
p1: u8,
p2: u8,
data: &[u8]
) -> Result<Vec<u8>>;
fn select(&mut self, aid: Vec<u8>) -> Result<()>;
fn instruct(&mut self, instruction: u8) -> Result<Vec<u8>> { ... }
}
Required Methods§
sourcefn call(&mut self, instruction: u8, data: &[u8]) -> Result<Vec<u8>>
fn call(&mut self, instruction: u8, data: &[u8]) -> Result<Vec<u8>>
The minimal higher-level interface to a transport.
sourcefn call_iso(
&mut self,
class: u8,
instruction: u8,
p1: u8,
p2: u8,
data: &[u8]
) -> Result<Vec<u8>>
fn call_iso(
&mut self,
class: u8,
instruction: u8,
p1: u8,
p2: u8,
data: &[u8]
) -> Result<Vec<u8>>
Call in the funny ISO 7816 fashion with three extra parameters. Note that only the PCSC transport implements this, not the CTAP transport.