pub struct NativeBiometric {}Expand description
The native Biometric for this host.
On macOS this is the real LAContext-backed prompt ([host]). On other
targets it is a stub that always denies (biometrics is unavailable), which
keeps the type usable in cross-platform builds even though the CLI will never
select it off-macOS.
Implementations§
Trait Implementations§
Source§impl Biometric for NativeBiometric
impl Biometric for NativeBiometric
Source§fn prompt(&self, req: &ConfirmRequest, timeout: Duration) -> ConfirmOutcome
fn prompt(&self, req: &ConfirmRequest, timeout: Duration) -> ConfirmOutcome
Show the authoritative prompt and await an attended decision.
Auto Trait Implementations§
impl Freeze for NativeBiometric
impl RefUnwindSafe for NativeBiometric
impl Send for NativeBiometric
impl Sync for NativeBiometric
impl Unpin for NativeBiometric
impl UnsafeUnpin for NativeBiometric
impl UnwindSafe for NativeBiometric
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