pub struct App<T, R>where
T: TrussedClient,
R: Reboot,{ /* private fields */ }Implementations§
Trait Implementations§
Source§impl<T, R> App<{command::SIZE}, {response::SIZE}> for App<T, R>where
T: TrussedClient,
R: Reboot,
impl<T, R> App<{command::SIZE}, {response::SIZE}> for App<T, R>where
T: TrussedClient,
R: Reboot,
Source§fn select(&mut self, _apdu: &Command, _reply: &mut Data) -> Result
fn select(&mut self, _apdu: &Command, _reply: &mut Data) -> Result
Given parsed APDU for select command.
Write response data back to buf, and return length of payload. Return APDU Error code on error.
Alternatively, the app can defer the response until later by returning it in
poll().Source§impl<T, R> App for App<T, R>where
T: TrussedClient,
R: Reboot,
impl<T, R> App for App<T, R>where
T: TrussedClient,
R: Reboot,
Source§fn commands(&self) -> &'static [HidCommand]
fn commands(&self) -> &'static [HidCommand]
Define which CTAPHID commands to register to.
Auto Trait Implementations§
impl<T, R> Freeze for App<T, R>where
T: Freeze,
impl<T, R> RefUnwindSafe for App<T, R>where
T: RefUnwindSafe,
R: RefUnwindSafe,
impl<T, R> Send for App<T, R>
impl<T, R> Sync for App<T, R>
impl<T, R> Unpin for App<T, R>
impl<T, R> UnwindSafe for App<T, R>where
T: UnwindSafe,
R: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more