use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern "C" {
pub static PKIdentityErrorDomain: &'static NSErrorDomain;
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct PKIdentityError(pub NSInteger);
impl PKIdentityError {
#[doc(alias = "PKIdentityErrorUnknown")]
pub const Unknown: Self = Self(0);
#[doc(alias = "PKIdentityErrorNotSupported")]
pub const NotSupported: Self = Self(1);
#[doc(alias = "PKIdentityErrorCancelled")]
pub const Cancelled: Self = Self(2);
#[doc(alias = "PKIdentityErrorNetworkUnavailable")]
pub const NetworkUnavailable: Self = Self(3);
#[doc(alias = "PKIdentityErrorNoElementsRequested")]
pub const NoElementsRequested: Self = Self(4);
#[doc(alias = "PKIdentityErrorRequestAlreadyInProgress")]
pub const RequestAlreadyInProgress: Self = Self(5);
#[doc(alias = "PKIdentityErrorInvalidNonce")]
pub const InvalidNonce: Self = Self(6);
#[doc(alias = "PKIdentityErrorInvalidElement")]
pub const InvalidElement: Self = Self(7);
#[doc(alias = "PKIdentityErrorRegionNotSupported")]
pub const RegionNotSupported: Self = Self(8);
}
unsafe impl Encode for PKIdentityError {
const ENCODING: Encoding = NSInteger::ENCODING;
}
unsafe impl RefEncode for PKIdentityError {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}