pub struct Cli {}
Available on crate feature
ui-cli
only.Expand description
Basic CLI UiCallback implementation, available with --features ui-cli
.
This gets input from stdin
and sends messages to stderr
.
This is only intended for testing, and doesn’t implement much functionality (like localization).
Tip: to get QR codes for cable
authenticators, enable the qrcode
feature.
Trait Implementations§
Source§impl UiCallback for Cli
impl UiCallback for Cli
Source§fn request_pin(&self) -> Option<String>
fn request_pin(&self) -> Option<String>
Prompts the user to enter their PIN.
Source§fn request_touch(&self)
fn request_touch(&self)
Prompts the user to interact with their authenticator, normally by
pressing or touching its button. Read more
Source§fn processing(&self)
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>,
)
fn fingerprint_enrollment_feedback( &self, remaining_samples: u32, feedback: Option<EnrollSampleStatus>, )
Provide the user feedback when they are enrolling fingerprints. Read more
Source§fn 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. Read more
Source§fn dismiss_qr_code(&self)
fn dismiss_qr_code(&self)
Dismiss a displayed QR code from the screen. Read more
fn cable_status_update(&self, state: CableState)
Auto Trait Implementations§
impl Freeze for Cli
impl RefUnwindSafe for Cli
impl Send for Cli
impl Sync for Cli
impl Unpin for Cli
impl UnwindSafe for Cli
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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