Struct coins_ledger::common::APDUCommand [−][src]
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
impl APDUCommand
[src]
pub fn serialized_length(&self) -> usize
[src]
Return the serialized length of the APDU packet
pub fn write_to<W: Write>(&self, w: &mut W) -> Result<usize, Error>
[src]
Write the APDU packet to the specified Write interface
pub fn serialize(&self) -> Vec<u8>
[src]
Serialize the APDU to a vector
Trait Implementations
impl Clone for APDUCommand
[src]
fn clone(&self) -> APDUCommand
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for APDUCommand
[src]
impl Eq for APDUCommand
[src]
impl PartialEq<APDUCommand> for APDUCommand
[src]
fn eq(&self, other: &APDUCommand) -> bool
[src]
fn ne(&self, other: &APDUCommand) -> bool
[src]
impl StructuralEq for APDUCommand
[src]
impl StructuralPartialEq for APDUCommand
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,