pub trait Handler: HandlerInCtx<()> { // Provided method fn handle(&self, command: &[u8], response: &mut [u8]) -> Result { ... } }
An handler to handle an APDU command and receive a response
Handles the APDU command. Implementations must transmit the command to the card through a reader, then receive the response from them, returning length of the data written.