use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern "C" {
pub static LAErrorDomain: &'static NSString;
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct LAError(pub NSInteger);
impl LAError {
#[doc(alias = "LAErrorAuthenticationFailed")]
pub const AuthenticationFailed: Self = Self(-1);
#[doc(alias = "LAErrorUserCancel")]
pub const UserCancel: Self = Self(-2);
#[doc(alias = "LAErrorUserFallback")]
pub const UserFallback: Self = Self(-3);
#[doc(alias = "LAErrorSystemCancel")]
pub const SystemCancel: Self = Self(-4);
#[doc(alias = "LAErrorPasscodeNotSet")]
pub const PasscodeNotSet: Self = Self(-5);
#[deprecated = "use LAErrorBiometryNotAvailable"]
#[doc(alias = "LAErrorTouchIDNotAvailable")]
pub const TouchIDNotAvailable: Self = Self(-6);
#[deprecated = "use LAErrorBiometryNotEnrolled"]
#[doc(alias = "LAErrorTouchIDNotEnrolled")]
pub const TouchIDNotEnrolled: Self = Self(-7);
#[deprecated = "use LAErrorBiometryLockout"]
#[doc(alias = "LAErrorTouchIDLockout")]
pub const TouchIDLockout: Self = Self(-8);
#[doc(alias = "LAErrorAppCancel")]
pub const AppCancel: Self = Self(-9);
#[doc(alias = "LAErrorInvalidContext")]
pub const InvalidContext: Self = Self(-10);
#[doc(alias = "LAErrorBiometryNotAvailable")]
pub const BiometryNotAvailable: Self = Self(-6);
#[doc(alias = "LAErrorBiometryNotEnrolled")]
pub const BiometryNotEnrolled: Self = Self(-7);
#[doc(alias = "LAErrorBiometryLockout")]
pub const BiometryLockout: Self = Self(-8);
#[doc(alias = "LAErrorNotInteractive")]
pub const NotInteractive: Self = Self(-1004);
#[doc(alias = "LAErrorWatchNotAvailable")]
pub const WatchNotAvailable: Self = Self(-11);
#[doc(alias = "LAErrorBiometryNotPaired")]
pub const BiometryNotPaired: Self = Self(-12);
#[doc(alias = "LAErrorBiometryDisconnected")]
pub const BiometryDisconnected: Self = Self(-13);
#[doc(alias = "LAErrorInvalidDimensions")]
pub const InvalidDimensions: Self = Self(-14);
}
unsafe impl Encode for LAError {
const ENCODING: Encoding = NSInteger::ENCODING;
}
unsafe impl RefEncode for LAError {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}