pub struct BiometricConfirmer<B: Biometric = NativeBiometric> { /* private fields */ }Expand description
A Confirmer that resolves a request through an attended biometric prompt.
This is the adapter from the OS-independent Confirmer surface (what the
wrapper/CLI consume) onto a Biometric implementation (the native dialog).
The biometric does the work; this type just maps the trait. The B generic
lets tests inject a deterministic mock Biometric without touching hardware.
Implementations§
Source§impl<B: Biometric> BiometricConfirmer<B>
impl<B: Biometric> BiometricConfirmer<B>
Sourcepub fn with_biometric(biometric: B) -> Self
pub fn with_biometric(biometric: B) -> Self
A confirmer backed by an explicit Biometric (tests inject a mock).
Trait Implementations§
Source§impl<B: Biometric> Confirmer for BiometricConfirmer<B>
impl<B: Biometric> Confirmer for BiometricConfirmer<B>
Source§fn confirm(&self, req: &ConfirmRequest, timeout: Duration) -> ConfirmOutcome
fn confirm(&self, req: &ConfirmRequest, timeout: Duration) -> ConfirmOutcome
Block until the request is resolved or
timeout elapses. A timeout fails
safe (the broker default is denial, §8).Source§impl Default for BiometricConfirmer<NativeBiometric>
impl Default for BiometricConfirmer<NativeBiometric>
Auto Trait Implementations§
impl<B> Freeze for BiometricConfirmer<B>where
B: Freeze,
impl<B> RefUnwindSafe for BiometricConfirmer<B>where
B: RefUnwindSafe,
impl<B> Send for BiometricConfirmer<B>where
B: Send,
impl<B> Sync for BiometricConfirmer<B>where
B: Sync,
impl<B> Unpin for BiometricConfirmer<B>where
B: Unpin,
impl<B> UnsafeUnpin for BiometricConfirmer<B>where
B: UnsafeUnpin,
impl<B> UnwindSafe for BiometricConfirmer<B>where
B: UnwindSafe,
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