1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct CLError(pub NSInteger);
impl CLError {
    pub const kCLErrorLocationUnknown: Self = Self(0);
    pub const kCLErrorDenied: Self = Self(1);
    pub const kCLErrorNetwork: Self = Self(2);
    pub const kCLErrorHeadingFailure: Self = Self(3);
    pub const kCLErrorRegionMonitoringDenied: Self = Self(4);
    pub const kCLErrorRegionMonitoringFailure: Self = Self(5);
    pub const kCLErrorRegionMonitoringSetupDelayed: Self = Self(6);
    pub const kCLErrorRegionMonitoringResponseDelayed: Self = Self(7);
    pub const kCLErrorGeocodeFoundNoResult: Self = Self(8);
    pub const kCLErrorGeocodeFoundPartialResult: Self = Self(9);
    pub const kCLErrorGeocodeCanceled: Self = Self(10);
    pub const kCLErrorDeferredFailed: Self = Self(11);
    pub const kCLErrorDeferredNotUpdatingLocation: Self = Self(12);
    pub const kCLErrorDeferredAccuracyTooLow: Self = Self(13);
    pub const kCLErrorDeferredDistanceFiltered: Self = Self(14);
    pub const kCLErrorDeferredCanceled: Self = Self(15);
    pub const kCLErrorRangingUnavailable: Self = Self(16);
    pub const kCLErrorRangingFailure: Self = Self(17);
    pub const kCLErrorPromptDeclined: Self = Self(18);
    pub const kCLErrorHistoricalLocationError: Self = Self(19);
}

unsafe impl Encode for CLError {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for CLError {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

extern "C" {
    pub static kCLErrorUserInfoAlternateRegionKey: &'static NSString;
}