use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern "C" {
pub static ASExtensionErrorDomain: Option<&'static NSErrorDomain>;
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct ASExtensionErrorCode(pub NSInteger);
impl ASExtensionErrorCode {
#[doc(alias = "ASExtensionErrorCodeFailed")]
pub const Failed: Self = Self(0);
#[doc(alias = "ASExtensionErrorCodeUserCanceled")]
pub const UserCanceled: Self = Self(1);
#[doc(alias = "ASExtensionErrorCodeUserInteractionRequired")]
pub const UserInteractionRequired: Self = Self(100);
#[doc(alias = "ASExtensionErrorCodeCredentialIdentityNotFound")]
pub const CredentialIdentityNotFound: Self = Self(101);
#[doc(alias = "ASExtensionErrorCodeMatchedExcludedCredential")]
pub const MatchedExcludedCredential: Self = Self(102);
}
unsafe impl Encode for ASExtensionErrorCode {
const ENCODING: Encoding = NSInteger::ENCODING;
}
unsafe impl RefEncode for ASExtensionErrorCode {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
extern "C" {
pub static ASExtensionLocalizedFailureReasonErrorKey: Option<&'static NSErrorUserInfoKey>;
}