pub struct HostControl;Expand description
Host Control (§8.5.1) — host-provided. The module opens a host_control
session and issues tune / replace / clear_replace / ask_release
objects; this handler decodes each and surfaces it as
Notification::HostControl. The host acts on the request out of band (it
retunes / replaces PIDs itself) — the runtime does not re-tune, so there is
no reply APDU.
Trait Implementations§
Source§impl Debug for HostControl
impl Debug for HostControl
Source§impl Default for HostControl
impl Default for HostControl
Source§fn default() -> HostControl
fn default() -> HostControl
Returns the “default value” for a type. Read more
Source§impl Resource for HostControl
impl Resource for HostControl
Source§fn id(&self) -> ResourceId
fn id(&self) -> ResourceId
The resource this handler serves.
Source§fn on_apdu(&mut self, apdu: &[u8]) -> ResourceOut
fn on_apdu(&mut self, apdu: &[u8]) -> ResourceOut
An APDU arrived on this resource’s session.
Source§fn on_open(&mut self) -> ResourceOut
fn on_open(&mut self) -> ResourceOut
The session for this resource just opened.
Source§fn tick(&mut self, _elapsed: Duration) -> ResourceOut
fn tick(&mut self, _elapsed: Duration) -> ResourceOut
Logical time advanced (for resources with timers, e.g. date_time).
Auto Trait Implementations§
impl Freeze for HostControl
impl RefUnwindSafe for HostControl
impl Send for HostControl
impl Sync for HostControl
impl Unpin for HostControl
impl UnsafeUnpin for HostControl
impl UnwindSafe for HostControl
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