objc2_intents/generated/
INIntentErrors.rs1use objc2::__framework_prelude::*;
4use objc2_foundation::*;
5
6use crate::*;
7
8extern "C" {
9 pub static INIntentErrorDomain: Option<&'static NSString>;
11}
12
13#[repr(transparent)]
16#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
17pub struct INIntentErrorCode(pub NSInteger);
18impl INIntentErrorCode {
19 #[doc(alias = "INIntentErrorInteractionOperationNotSupported")]
20 pub const InteractionOperationNotSupported: Self = Self(1900);
21 #[doc(alias = "INIntentErrorDonatingInteraction")]
22 pub const DonatingInteraction: Self = Self(1901);
23 #[doc(alias = "INIntentErrorDeletingAllInteractions")]
24 pub const DeletingAllInteractions: Self = Self(1902);
25 #[doc(alias = "INIntentErrorDeletingInteractionWithIdentifiers")]
26 pub const DeletingInteractionWithIdentifiers: Self = Self(1903);
27 #[doc(alias = "INIntentErrorDeletingInteractionWithGroupIdentifier")]
28 pub const DeletingInteractionWithGroupIdentifier: Self = Self(1904);
29 #[doc(alias = "INIntentErrorIntentSupportedByMultipleExtension")]
30 pub const IntentSupportedByMultipleExtension: Self = Self(2001);
31 #[doc(alias = "INIntentErrorRestrictedIntentsNotSupportedByExtension")]
32 pub const RestrictedIntentsNotSupportedByExtension: Self = Self(2002);
33 #[doc(alias = "INIntentErrorNoHandlerProvidedForIntent")]
34 pub const NoHandlerProvidedForIntent: Self = Self(2003);
35 #[doc(alias = "INIntentErrorInvalidIntentName")]
36 pub const InvalidIntentName: Self = Self(2004);
37 #[doc(alias = "INIntentErrorNoAppAvailable")]
38 pub const NoAppAvailable: Self = Self(2005);
39 #[doc(alias = "INIntentErrorRequestTimedOut")]
40 pub const RequestTimedOut: Self = Self(3001);
41 #[doc(alias = "INIntentErrorMissingInformation")]
42 pub const MissingInformation: Self = Self(3002);
43 #[doc(alias = "INIntentErrorInvalidUserVocabularyFileLocation")]
44 pub const InvalidUserVocabularyFileLocation: Self = Self(4000);
45 #[doc(alias = "INIntentErrorExtensionLaunchingTimeout")]
46 pub const ExtensionLaunchingTimeout: Self = Self(5000);
47 #[doc(alias = "INIntentErrorExtensionBringUpFailed")]
48 pub const ExtensionBringUpFailed: Self = Self(5001);
49 #[doc(alias = "INIntentErrorImageGeneric")]
50 pub const ImageGeneric: Self = Self(6000);
51 #[doc(alias = "INIntentErrorImageNoServiceAvailable")]
52 pub const ImageNoServiceAvailable: Self = Self(6001);
53 #[doc(alias = "INIntentErrorImageStorageFailed")]
54 pub const ImageStorageFailed: Self = Self(6002);
55 #[doc(alias = "INIntentErrorImageLoadingFailed")]
56 pub const ImageLoadingFailed: Self = Self(6003);
57 #[doc(alias = "INIntentErrorImageRetrievalFailed")]
58 pub const ImageRetrievalFailed: Self = Self(6004);
59 #[doc(alias = "INIntentErrorImageProxyLoop")]
60 pub const ImageProxyLoop: Self = Self(6005);
61 #[doc(alias = "INIntentErrorImageProxyInvalid")]
62 pub const ImageProxyInvalid: Self = Self(6006);
63 #[doc(alias = "INIntentErrorImageProxyTimeout")]
64 pub const ImageProxyTimeout: Self = Self(6007);
65 #[doc(alias = "INIntentErrorImageServiceFailure")]
66 pub const ImageServiceFailure: Self = Self(6008);
67 #[doc(alias = "INIntentErrorImageScalingFailed")]
68 pub const ImageScalingFailed: Self = Self(6009);
69 #[doc(alias = "INIntentErrorPermissionDenied")]
70 pub const PermissionDenied: Self = Self(6010);
71 #[doc(alias = "INIntentErrorVoiceShortcutCreationFailed")]
72 pub const VoiceShortcutCreationFailed: Self = Self(7000);
73 #[doc(alias = "INIntentErrorVoiceShortcutGetFailed")]
74 pub const VoiceShortcutGetFailed: Self = Self(7001);
75 #[doc(alias = "INIntentErrorVoiceShortcutDeleteFailed")]
76 pub const VoiceShortcutDeleteFailed: Self = Self(7002);
77 #[doc(alias = "INIntentErrorEncodingGeneric")]
78 pub const EncodingGeneric: Self = Self(8000);
79 #[doc(alias = "INIntentErrorEncodingFailed")]
80 pub const EncodingFailed: Self = Self(8001);
81 #[doc(alias = "INIntentErrorDecodingGeneric")]
82 pub const DecodingGeneric: Self = Self(9000);
83 #[doc(alias = "INIntentErrorUnableToCreateAppIntentRepresentation")]
84 pub const UnableToCreateAppIntentRepresentation: Self = Self(10000);
85 #[doc(alias = "INIntentErrorNoAppIntent")]
86 pub const NoAppIntent: Self = Self(10001);
87}
88
89unsafe impl Encode for INIntentErrorCode {
90 const ENCODING: Encoding = NSInteger::ENCODING;
91}
92
93unsafe impl RefEncode for INIntentErrorCode {
94 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
95}