pub trait App {
    fn commands(&self) -> &'static [Command];
    fn call(
        &mut self,
        command: Command,
        request: &Message,
        response: &mut Message
    ) -> AppResult; }
Expand description

trait interface for a CTAPHID application. The application chooses which commands to register to, and will be called upon when the commands are received in the CTAPHID layer. Only one application can be registered to a particular command.

Required Methods

Define which CTAPHID commands to register to.

Application is called here when one of it’s register commands occurs. Application must put response in @message, or decide to return an error.

The response is pre-cleared.

Implementors