objc2_pass_kit/generated/
PKIdentityError.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern "C" {
10 pub static PKIdentityErrorDomain: &'static NSErrorDomain;
14}
15
16#[repr(transparent)]
21#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
22pub struct PKIdentityError(pub NSInteger);
23impl PKIdentityError {
24 #[doc(alias = "PKIdentityErrorUnknown")]
26 pub const Unknown: Self = Self(0);
27 #[doc(alias = "PKIdentityErrorNotSupported")]
29 pub const NotSupported: Self = Self(1);
30 #[doc(alias = "PKIdentityErrorCancelled")]
32 pub const Cancelled: Self = Self(2);
33 #[doc(alias = "PKIdentityErrorNetworkUnavailable")]
36 pub const NetworkUnavailable: Self = Self(3);
37 #[doc(alias = "PKIdentityErrorNoElementsRequested")]
39 pub const NoElementsRequested: Self = Self(4);
40 #[doc(alias = "PKIdentityErrorRequestAlreadyInProgress")]
43 pub const RequestAlreadyInProgress: Self = Self(5);
44 #[doc(alias = "PKIdentityErrorInvalidNonce")]
46 pub const InvalidNonce: Self = Self(6);
47 #[doc(alias = "PKIdentityErrorInvalidElement")]
49 pub const InvalidElement: Self = Self(7);
50 #[doc(alias = "PKIdentityErrorRegionNotSupported")]
52 pub const RegionNotSupported: Self = Self(8);
53}
54
55unsafe impl Encode for PKIdentityError {
56 const ENCODING: Encoding = NSInteger::ENCODING;
57}
58
59unsafe impl RefEncode for PKIdentityError {
60 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
61}