#[repr(i32)]pub enum LAError {
Show 15 variants
LAErrorAppCancel = -9,
LAErrorSystemCancel = -4,
LAErrorUserCancel = -2,
LAErrorBiometryDisconnected = -13,
LAErrorBiometryLockout = -8,
LAErrorBiometryNotAvailable = -6,
LAErrorBiometryNotEnrolled = -7,
LAErrorBiometryNotPaired = -12,
LAErrorAuthenticationFailed = -1,
LAErrorInvalidContext = -10,
LAErrorInvalidDimensions = -14,
LAErrorNotInteractive = -1_004,
LAErrorPasscodeNotSet = -5,
LAErrorUserFallback = -3,
LAErrorWatchNotAvailable = -11,
}
Expand description
Binding to LAError
of LocalAuthentication
Error codes that the framework returns when policy evaluation fails.
Variants§
LAErrorAppCancel = -9
The app canceled authentication.
LAErrorSystemCancel = -4
The system canceled authentication.
LAErrorUserCancel = -2
The user tapped the cancel button in the authentication dialog.
LAErrorBiometryDisconnected = -13
The device supports biometry only using a removable accessory, but the paired accessory isn’t connected.
LAErrorBiometryLockout = -8
Biometry is locked because there were too many failed attempts.
LAErrorBiometryNotAvailable = -6
Biometry is not available on the device.
LAErrorBiometryNotEnrolled = -7
The user has no enrolled biometric identities.
LAErrorBiometryNotPaired = -12
The device supports biometry only using a removable accessory, but no accessory is paired.
LAErrorAuthenticationFailed = -1
The user failed to provide valid credentials.
LAErrorInvalidContext = -10
The context was previously invalidated.
LAErrorInvalidDimensions = -14
undocumented
LAErrorNotInteractive = -1_004
Displaying the required authentication user interface is forbidden.
LAErrorPasscodeNotSet = -5
A passcode isn’t set on the device.
LAErrorUserFallback = -3
The user tapped the fallback button in the authentication dialog, but no fallback is available for the authentication policy.
LAErrorWatchNotAvailable = -11
An attempt to authenticate with Apple Watch failed.
Trait Implementations§
Source§impl Error for LAError
impl Error for LAError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl FromPrimitive for LAError
impl FromPrimitive for LAError
Source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
i64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
u64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
isize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
i8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
i16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
i32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
i128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read moreSource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
usize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
u8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
u16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
u32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
u128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more