objc2_authentication_services/generated/
ASExtensionErrors.rs1use objc2::__framework_prelude::*;
4use objc2_foundation::*;
5
6use crate::*;
7
8extern "C" {
9 pub static ASExtensionErrorDomain: Option<&'static NSErrorDomain>;
11}
12
13#[repr(transparent)]
16#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
17pub struct ASExtensionErrorCode(pub NSInteger);
18impl ASExtensionErrorCode {
19 #[doc(alias = "ASExtensionErrorCodeFailed")]
20 pub const Failed: Self = Self(0);
21 #[doc(alias = "ASExtensionErrorCodeUserCanceled")]
22 pub const UserCanceled: Self = Self(1);
23 #[doc(alias = "ASExtensionErrorCodeUserInteractionRequired")]
24 pub const UserInteractionRequired: Self = Self(100);
25 #[doc(alias = "ASExtensionErrorCodeCredentialIdentityNotFound")]
26 pub const CredentialIdentityNotFound: Self = Self(101);
27 #[doc(alias = "ASExtensionErrorCodeMatchedExcludedCredential")]
30 pub const MatchedExcludedCredential: Self = Self(102);
31}
32
33unsafe impl Encode for ASExtensionErrorCode {
34 const ENCODING: Encoding = NSInteger::ENCODING;
35}
36
37unsafe impl RefEncode for ASExtensionErrorCode {
38 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
39}
40
41extern "C" {
42 pub static ASExtensionLocalizedFailureReasonErrorKey: Option<&'static NSErrorUserInfoKey>;
46}