objc2_core_location/generated/
CLLocationPushServiceError.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use objc2::__framework_prelude::*;
4use objc2_foundation::*;
5
6use crate::*;
7
8extern "C" {
9    /// [Apple's documentation](https://developer.apple.com/documentation/corelocation/cllocationpushserviceerrordomain?language=objc)
10    pub static CLLocationPushServiceErrorDomain: Option<&'static NSErrorDomain>;
11}
12
13/// [Apple's documentation](https://developer.apple.com/documentation/corelocation/cllocationpushserviceerror?language=objc)
14// NS_ERROR_ENUM
15#[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}