Handler

Trait Handler 

Source
pub trait Handler: HandlerInCtx {
    // Provided method
    fn handle(
        &self,
        command: &[u8],
        response: &mut [u8],
    ) -> Result<usize, HandleError> { ... }
}
Expand description

An handler to handle an APDU command and receive a response

Provided Methods§

Source

fn handle( &self, command: &[u8], response: &mut [u8], ) -> Result<usize, HandleError>

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.

Implementors§