Trait UiCallback

Source
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§

Source

fn request_pin(&self) -> Option<String>

Prompts the user to enter their PIN.

Source

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.

Source

fn processing(&self)

Tell the user that the key is currently processing a request.

Source

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.

Source

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.

Source

fn dismiss_qr_code(&self)

Dismiss a displayed QR code from the screen.

This method will be called synchronously, and must not block.

Source

fn cable_status_update(&self, state: CableState)

Implementors§

Source§

impl UiCallback for Cli

Available on crate feature ui-cli only.