Trait HandlerInCtx

Source
pub trait HandlerInCtx<Ctx = ()> {
    // Required method
    fn handle_in_ctx(
        &self,
        ctx: Ctx,
        command: &[u8],
        response: &mut [u8],
    ) -> Result;
}
Expand description

An handler to handle an APDU command and receive a response in a specific context.

Required Methods§

Source

fn handle_in_ctx(&self, ctx: Ctx, command: &[u8], response: &mut [u8]) -> Result

Handles the APDU command in a specific context. Implementations must transmit the command to the card through a reader, then receive the response from them, returning length of the data written.

Implementors§