1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern "C" {
    pub static LAErrorDomain: &'static NSString;
}

// NS_ENUM
#[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);
}