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 for APDUCommand
impl PartialEq 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 ==
.impl Eq for APDUCommand
impl StructuralPartialEq for APDUCommand
Auto Trait Implementations§
impl RefUnwindSafe for APDUCommand
impl Send for APDUCommand
impl Sync for APDUCommand
impl Unpin for APDUCommand
impl UnwindSafe for APDUCommand
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more