pub enum Availability {
Available,
NotEnrolled,
NoHardware,
PasscodeNotSet,
Lockout,
DisabledByPolicy,
Busy,
Unsupported,
}Expand description
Whether a prompt can succeed right now, and if not, why.
Variants§
Available
A biometric is enrolled and ready; a prompt will ask for it.
NotEnrolled
The device has a sensor but the person has not enrolled anything. A prompt that allows the device credential can still succeed.
NoHardware
The device has no biometric sensor. A prompt that allows the device credential can still succeed where the platform offers one (Apple and Android do, HarmonyOS does with a PIN enrolled, Windows Hello needs a PIN set up).
PasscodeNotSet
No passcode, PIN or password is set on the device, so nothing can be verified at all.
Lockout
Too many failed attempts: the biometric is locked until the device credential is entered.
DisabledByPolicy
A device policy (Windows Group Policy, an Android device admin) disables biometrics.
Busy
The sensor is in use by another request.
Unsupported
This platform has no API an app can use (desktop Linux, the web, Android below API 28).
Trait Implementations§
Source§impl Clone for Availability
impl Clone for Availability
Source§fn clone(&self) -> Availability
fn clone(&self) -> Availability
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more