pub trait App<'interrupt, const N: usize> {
// Required methods
fn commands(&self) -> &'static [Command];
fn call(
&mut self,
command: Command,
request: &[u8],
response: &mut Bytes<N>,
) -> Result<(), Error>;
// Provided method
fn interrupt(&self) -> Option<&'interrupt InterruptFlag> { ... }
}
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§
Provided Methods§
Sourcefn interrupt(&self) -> Option<&'interrupt InterruptFlag>
fn interrupt(&self) -> Option<&'interrupt InterruptFlag>
Get access to the app interrupter