pub struct Command<const S: usize> {
pub p1: u8,
pub p2: u8,
pub extended: bool,
/* private fields */
}
Fields§
§p1: u8
§p2: u8
§extended: bool
Implementations§
source§impl<const S: usize> Command<S>
impl<const S: usize> Command<S>
pub fn try_from(apdu: &[u8]) -> Result<Self, FromSliceError>
pub fn class(&self) -> Class
pub fn instruction(&self) -> Instruction
pub fn data(&self) -> &Data<S>
pub fn data_mut(&mut self) -> &mut Data<S>
pub fn expected(&self) -> usize
pub fn as_view(&self) -> CommandView<'_>
sourcepub fn extend_from_command<const T: usize>(
&mut self,
command: &Command<T>
) -> Result<(), ()>
pub fn extend_from_command<const T: usize>( &mut self, command: &Command<T> ) -> Result<(), ()>
This can be use for APDU chaining to convert multiple APDU’s into one.
- Global Platform GPC_SPE_055 3.10
sourcepub fn extend_from_command_view(
&mut self,
command: CommandView<'_>
) -> Result<(), ()>
pub fn extend_from_command_view( &mut self, command: CommandView<'_> ) -> Result<(), ()>
This can be use for APDU chaining to convert multiple APDU’s into one.
- Global Platform GPC_SPE_055 3.10
Trait Implementations§
source§impl<const S: usize> PartialEq for Command<S>
impl<const S: usize> PartialEq for Command<S>
impl<const S: usize> Eq for Command<S>
impl<const S: usize> StructuralEq for Command<S>
impl<const S: usize> StructuralPartialEq for Command<S>
Auto Trait Implementations§
impl<const S: usize> RefUnwindSafe for Command<S>
impl<const S: usize> Send for Command<S>
impl<const S: usize> Sync for Command<S>
impl<const S: usize> Unpin for Command<S>
impl<const S: usize> UnwindSafe for Command<S>
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