#[non_exhaustive]pub enum RetryReason {
General,
TooShort,
NotCentered,
RemoveAndRetry,
TooFast,
}Expand description
Why a scan needs to be retried (maps to fprintd enroll-*/verify-* retry strings).
Mirrors libfprint’s open-ended FpDeviceRetry vocabulary, so it is #[non_exhaustive]:
a future retry reason must not be a breaking change for downstream matchers.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
General
FP_DEVICE_RETRY_GENERAL: the scan was unusable, with no more specific cause.
TooShort
FP_DEVICE_RETRY_TOO_SHORT: the swipe covered too little of the sensor.
NotCentered
FP_DEVICE_RETRY_CENTER_FINGER: the finger was off the centre of the sensor.
RemoveAndRetry
FP_DEVICE_RETRY_REMOVE_FINGER: the finger must leave the sensor before retrying.
TooFast
FP_DEVICE_RETRY_TOO_FAST: the swipe was too quick to digitize.
Trait Implementations§
Source§impl Clone for RetryReason
impl Clone for RetryReason
impl Copy for RetryReason
Source§impl Debug for RetryReason
impl Debug for RetryReason
impl Eq for RetryReason
Source§impl PartialEq for RetryReason
impl PartialEq for RetryReason
impl StructuralPartialEq for RetryReason
Auto Trait Implementations§
impl Freeze for RetryReason
impl RefUnwindSafe for RetryReason
impl Send for RetryReason
impl Sync for RetryReason
impl Unpin for RetryReason
impl UnsafeUnpin for RetryReason
impl UnwindSafe for RetryReason
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