objc2_ar_kit/generated/
ARError.rs1use core::ptr::NonNull;
4#[cfg(feature = "objc2")]
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-foundation")]
7use objc2_foundation::*;
8
9use crate::*;
10
11extern "C" {
12 #[cfg(feature = "objc2-foundation")]
14 pub static ARErrorDomain: &'static NSString;
15}
16
17#[cfg(feature = "objc2")]
20#[repr(transparent)]
21#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
22pub struct ARErrorCode(pub NSInteger);
23#[cfg(feature = "objc2")]
24impl ARErrorCode {
25 #[doc(alias = "ARErrorCodeUnsupportedConfiguration")]
27 pub const UnsupportedConfiguration: Self = Self(100);
28 #[doc(alias = "ARErrorCodeSensorUnavailable")]
30 pub const SensorUnavailable: Self = Self(101);
31 #[doc(alias = "ARErrorCodeSensorFailed")]
33 pub const SensorFailed: Self = Self(102);
34 #[doc(alias = "ARErrorCodeCameraUnauthorized")]
36 pub const CameraUnauthorized: Self = Self(103);
37 #[doc(alias = "ARErrorCodeMicrophoneUnauthorized")]
39 pub const MicrophoneUnauthorized: Self = Self(104);
40 #[doc(alias = "ARErrorCodeLocationUnauthorized")]
42 pub const LocationUnauthorized: Self = Self(105);
43 #[doc(alias = "ARErrorCodeHighResolutionFrameCaptureInProgress")]
45 pub const HighResolutionFrameCaptureInProgress: Self = Self(106);
46 #[doc(alias = "ARErrorCodeHighResolutionFrameCaptureFailed")]
48 pub const HighResolutionFrameCaptureFailed: Self = Self(107);
49 #[doc(alias = "ARErrorCodeWorldTrackingFailed")]
51 pub const WorldTrackingFailed: Self = Self(200);
52 #[doc(alias = "ARErrorCodeGeoTrackingNotAvailableAtLocation")]
54 pub const GeoTrackingNotAvailableAtLocation: Self = Self(201);
55 #[doc(alias = "ARErrorCodeGeoTrackingFailed")]
57 pub const GeoTrackingFailed: Self = Self(202);
58 #[doc(alias = "ARErrorCodeInvalidReferenceImage")]
60 pub const InvalidReferenceImage: Self = Self(300);
61 #[doc(alias = "ARErrorCodeInvalidReferenceObject")]
63 pub const InvalidReferenceObject: Self = Self(301);
64 #[doc(alias = "ARErrorCodeInvalidWorldMap")]
66 pub const InvalidWorldMap: Self = Self(302);
67 #[doc(alias = "ARErrorCodeInvalidConfiguration")]
69 pub const InvalidConfiguration: Self = Self(303);
70 #[doc(alias = "ARErrorCodeInvalidCollaborationData")]
72 pub const InvalidCollaborationData: Self = Self(304);
73 #[doc(alias = "ARErrorCodeInsufficientFeatures")]
75 pub const InsufficientFeatures: Self = Self(400);
76 #[doc(alias = "ARErrorCodeObjectMergeFailed")]
78 pub const ObjectMergeFailed: Self = Self(401);
79 #[doc(alias = "ARErrorCodeFileIOFailed")]
81 pub const FileIOFailed: Self = Self(500);
82 #[doc(alias = "ARErrorCodeRequestFailed")]
84 pub const RequestFailed: Self = Self(501);
85}
86
87#[cfg(feature = "objc2")]
88unsafe impl Encode for ARErrorCode {
89 const ENCODING: Encoding = NSInteger::ENCODING;
90}
91
92#[cfg(feature = "objc2")]
93unsafe impl RefEncode for ARErrorCode {
94 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
95}