objc2_core_location/generated/
CLLocationPushServiceError.rs1use objc2::__framework_prelude::*;
4use objc2_foundation::*;
5
6use crate::*;
7
8extern "C" {
9 pub static CLLocationPushServiceErrorDomain: Option<&'static NSErrorDomain>;
11}
12
13#[repr(transparent)]
16#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
17pub struct CLLocationPushServiceError(pub NSInteger);
18impl CLLocationPushServiceError {
19 #[doc(alias = "CLLocationPushServiceErrorUnknown")]
20 pub const Unknown: Self = Self(0);
21 #[doc(alias = "CLLocationPushServiceErrorMissingPushExtension")]
22 pub const MissingPushExtension: Self = Self(1);
23 #[doc(alias = "CLLocationPushServiceErrorMissingPushServerEnvironment")]
24 pub const MissingPushServerEnvironment: Self = Self(2);
25 #[doc(alias = "CLLocationPushServiceErrorMissingEntitlement")]
26 pub const MissingEntitlement: Self = Self(3);
27 #[doc(alias = "CLLocationPushServiceErrorUnsupportedPlatform")]
28 pub const UnsupportedPlatform: Self = Self(4);
29}
30
31unsafe impl Encode for CLLocationPushServiceError {
32 const ENCODING: Encoding = NSInteger::ENCODING;
33}
34
35unsafe impl RefEncode for CLLocationPushServiceError {
36 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
37}