pub trait UiCallback:
Sync
+ Send
+ Debug {
// Required methods
fn request_pin(&self) -> Option<String>;
fn request_touch(&self);
fn processing(&self);
fn fingerprint_enrollment_feedback(
&self,
remaining_samples: u32,
feedback: Option<EnrollSampleStatus>,
);
fn cable_qr_code(&self, request_type: CableRequestType, url: String);
fn dismiss_qr_code(&self);
fn cable_status_update(&self, state: CableState);
}Required Methods§
Sourcefn request_pin(&self) -> Option<String>
fn request_pin(&self) -> Option<String>
Prompts the user to enter their PIN.
Sourcefn request_touch(&self)
fn request_touch(&self)
Prompts the user to interact with their authenticator, normally by pressing or touching its button.
This method will be called synchronously, and must not block.
Sourcefn processing(&self)
fn processing(&self)
Tell the user that the key is currently processing a request.
Sourcefn fingerprint_enrollment_feedback(
&self,
remaining_samples: u32,
feedback: Option<EnrollSampleStatus>,
)
fn fingerprint_enrollment_feedback( &self, remaining_samples: u32, feedback: Option<EnrollSampleStatus>, )
Provide the user feedback when they are enrolling fingerprints.
This method will be called synchronously, and must not block.
Sourcefn cable_qr_code(&self, request_type: CableRequestType, url: String)
fn cable_qr_code(&self, request_type: CableRequestType, url: String)
Prompt the user to scan a QR code with their mobile device to start the caBLE linking process.
This method will be called synchronously, and must not block.
Sourcefn dismiss_qr_code(&self)
fn dismiss_qr_code(&self)
Dismiss a displayed QR code from the screen.
This method will be called synchronously, and must not block.
fn cable_status_update(&self, state: CableState)
Implementors§
impl UiCallback for Cli
Available on crate feature
ui-cli only.