Struct iso7816::command::Command [−][src]
pub struct Command<SIZE> where
SIZE: ArrayLength<u8>, {
pub p1: u8,
pub p2: u8,
pub extended: bool,
// some fields omitted
}
Fields
p1: u8
p2: u8
extended: bool
Implementations
impl<SIZE> Command<SIZE> where
SIZE: ArrayLength<u8>,
[src]
impl<SIZE> Command<SIZE> where
SIZE: ArrayLength<u8>,
[src]pub fn try_from(apdu: &[u8]) -> Result<Self, FromSliceError>
[src]
pub fn class(&self) -> Class
[src]
pub fn instruction(&self) -> Instruction
[src]
pub fn data(&self) -> &Bytes<SIZE>
[src]
pub fn data_mut(&mut self) -> &mut Bytes<SIZE>
[src]
pub fn expected(&self) -> usize
[src]
pub fn extend_from_command(
&mut self,
command: &Command<impl ArrayLength<u8>>
) -> Result<(), ()>
[src]
pub fn extend_from_command(
&mut self,
command: &Command<impl ArrayLength<u8>>
) -> Result<(), ()>
[src]This can be use for APDU chaining to convert multiple APDU’s into one.
- Global Platform GPC_SPE_055 3.10
Trait Implementations
impl<SIZE: Eq> Eq for Command<SIZE> where
SIZE: ArrayLength<u8>,
[src]
SIZE: ArrayLength<u8>,
impl<SIZE> StructuralEq for Command<SIZE> where
SIZE: ArrayLength<u8>,
[src]
SIZE: ArrayLength<u8>,
impl<SIZE> StructuralPartialEq for Command<SIZE> where
SIZE: ArrayLength<u8>,
[src]
SIZE: ArrayLength<u8>,
Auto Trait Implementations
impl<SIZE> Send for Command<SIZE>
impl<SIZE> Sync for Command<SIZE>
impl<SIZE> Unpin for Command<SIZE> where
<SIZE as ArrayLength<u8>>::ArrayType: Unpin,
<SIZE as ArrayLength<u8>>::ArrayType: Unpin,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self