Struct webauthn_authenticator_rs::ui::Cli
source · 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 RefUnwindSafe for Cli
impl Send for Cli
impl Sync for Cli
impl Unpin for Cli
impl UnwindSafe for Cli
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> 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