pub enum CcidCommand<'a> {
IccPowerOn {
slot: u8,
seq: u8,
power_select: u8,
},
IccPowerOff {
slot: u8,
seq: u8,
},
GetSlotStatus {
slot: u8,
seq: u8,
},
XfrBlock {
slot: u8,
seq: u8,
bwi: u8,
level_parameter: u16,
apdu: &'a [u8],
},
GetParameters {
slot: u8,
seq: u8,
},
SetParameters {
slot: u8,
seq: u8,
protocol_num: u8,
data: &'a [u8],
},
ResetParameters {
slot: u8,
seq: u8,
},
Abort {
slot: u8,
seq: u8,
},
Unknown {
message_type: u8,
slot: u8,
seq: u8,
payload: &'a [u8],
},
}Expand description
A parsed CCID command received from the host over the Bulk OUT endpoint.
Variants§
IccPowerOn
PC_to_RDR_IccPowerOn (0x62): Host requests ICC card activation and ATR.
Fields
IccPowerOff
PC_to_RDR_IccPowerOff (0x63): Host requests ICC card deactivation.
GetSlotStatus
PC_to_RDR_GetSlotStatus (0x65): Host queries slot status.
XfrBlock
PC_to_RDR_XfrBlock (0x6F): Host sends an APDU block to the smart card.
Fields
GetParameters
PC_to_RDR_GetParameters (0x6C): Host queries slot parameters.
SetParameters
PC_to_RDR_SetParameters (0x61): Host sets slot protocol parameters.
Fields
ResetParameters
PC_to_RDR_ResetParameters (0x6D): Host resets slot parameters to defaults.
Abort
PC_to_RDR_Abort (0x72): Host requests aborting an ongoing transfer.
Unknown
Unknown or unsupported CCID command.
Trait Implementations§
Source§impl<'a> Clone for CcidCommand<'a>
impl<'a> Clone for CcidCommand<'a>
Source§impl<'a> Debug for CcidCommand<'a>
impl<'a> Debug for CcidCommand<'a>
impl<'a> Eq for CcidCommand<'a>
Source§impl<'a> Format for CcidCommand<'a>
impl<'a> Format for CcidCommand<'a>
Source§impl<'a> PartialEq for CcidCommand<'a>
impl<'a> PartialEq for CcidCommand<'a>
impl<'a> StructuralPartialEq for CcidCommand<'a>
Auto Trait Implementations§
impl<'a> Forget for CcidCommand<'a>
impl<'a> Freeze for CcidCommand<'a>
impl<'a> Move for CcidCommand<'a>
impl<'a> RefUnwindSafe for CcidCommand<'a>
impl<'a> Send for CcidCommand<'a>
impl<'a> Sync for CcidCommand<'a>
impl<'a> Unpin for CcidCommand<'a>
impl<'a> UnsafeUnpin for CcidCommand<'a>
impl<'a> UnwindSafe for CcidCommand<'a>
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