Struct coins_ledger::common::APDUCommand
source · pub struct APDUCommand {
pub ins: u8,
pub p1: u8,
pub p2: u8,
pub data: APDUData,
pub response_len: Option<u8>,
}
Expand description
An APDU Command packet, used to issue instructions to the smart card. See wikipedia for additional format details
Fields§
§ins: u8
The instruction code.
p1: u8
Instruction parameter 1
p2: u8
Instruction parameter 2
data: APDUData
Command data
response_len: Option<u8>
The requested response length.
Implementations§
source§impl APDUCommand
impl APDUCommand
Trait Implementations§
source§impl Clone for APDUCommand
impl Clone for APDUCommand
source§fn clone(&self) -> APDUCommand
fn clone(&self) -> APDUCommand
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for APDUCommand
impl Debug for APDUCommand
source§impl Display for APDUCommand
impl Display for APDUCommand
source§impl PartialEq<APDUCommand> for APDUCommand
impl PartialEq<APDUCommand> for APDUCommand
source§fn eq(&self, other: &APDUCommand) -> bool
fn eq(&self, other: &APDUCommand) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.