objc2_automator/generated/
AutomatorErrors.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use objc2::__framework_prelude::*;
4
5use crate::*;
6
7/// [Apple's documentation](https://developer.apple.com/documentation/automator/amerrorcode?language=objc)
8// NS_ENUM
9#[repr(transparent)]
10#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
11pub struct AMErrorCode(pub NSInteger);
12impl AMErrorCode {
13    #[doc(alias = "AMWorkflowNewerVersionError")]
14    pub const WorkflowNewerVersionError: Self = Self(-100);
15    #[doc(alias = "AMWorkflowPropertyListInvalidError")]
16    pub const WorkflowPropertyListInvalidError: Self = Self(-101);
17    #[doc(alias = "AMWorkflowNewerActionVersionError")]
18    pub const WorkflowNewerActionVersionError: Self = Self(-111);
19    #[doc(alias = "AMWorkflowOlderActionVersionError")]
20    pub const WorkflowOlderActionVersionError: Self = Self(-112);
21    #[doc(alias = "AMWorkflowActionsNotLoadedError")]
22    pub const WorkflowActionsNotLoadedError: Self = Self(-113);
23    #[doc(alias = "AMWorkflowNoEnabledActionsError")]
24    pub const WorkflowNoEnabledActionsError: Self = Self(-114);
25    #[doc(alias = "AMUserCanceledError")]
26    pub const UserCanceledError: Self = Self(-128);
27    #[doc(alias = "AMNoSuchActionError")]
28    pub const NoSuchActionError: Self = Self(-200);
29    #[doc(alias = "AMActionNotLoadableError")]
30    pub const ActionNotLoadableError: Self = Self(-201);
31    #[doc(alias = "AMActionArchitectureMismatchError")]
32    pub const ActionArchitectureMismatchError: Self = Self(-202);
33    #[doc(alias = "AMActionRuntimeMismatchError")]
34    pub const ActionRuntimeMismatchError: Self = Self(-203);
35    #[doc(alias = "AMActionLoadError")]
36    pub const ActionLoadError: Self = Self(-204);
37    #[doc(alias = "AMActionLinkError")]
38    pub const ActionLinkError: Self = Self(-205);
39    #[doc(alias = "AMActionApplicationResourceError")]
40    pub const ActionApplicationResourceError: Self = Self(-206);
41    #[doc(alias = "AMActionApplicationVersionResourceError")]
42    pub const ActionApplicationVersionResourceError: Self = Self(-207);
43    #[doc(alias = "AMActionFileResourceError")]
44    pub const ActionFileResourceError: Self = Self(-208);
45    #[doc(alias = "AMActionLicenseResourceError")]
46    pub const ActionLicenseResourceError: Self = Self(-209);
47    #[doc(alias = "AMActionRequiredActionResourceError")]
48    pub const ActionRequiredActionResourceError: Self = Self(-210);
49    #[doc(alias = "AMActionInitializationError")]
50    pub const ActionInitializationError: Self = Self(-211);
51    #[doc(alias = "AMActionExecutionError")]
52    pub const ActionExecutionError: Self = Self(-212);
53    #[doc(alias = "AMActionExceptionError")]
54    pub const ActionExceptionError: Self = Self(-213);
55    #[doc(alias = "AMActionPropertyListInvalidError")]
56    pub const ActionPropertyListInvalidError: Self = Self(-214);
57    #[doc(alias = "AMActionInsufficientDataError")]
58    pub const ActionInsufficientDataError: Self = Self(-215);
59    #[doc(alias = "AMActionIsDeprecatedError")]
60    pub const ActionIsDeprecatedError: Self = Self(-216);
61    #[doc(alias = "AMActionFailedGatekeeperError")]
62    pub const ActionFailedGatekeeperError: Self = Self(-217);
63    #[doc(alias = "AMActionSignatureCorruptError")]
64    pub const ActionSignatureCorruptError: Self = Self(-218);
65    #[doc(alias = "AMActionQuarantineError")]
66    pub const ActionQuarantineError: Self = Self(-219);
67    #[doc(alias = "AMActionXProtectError")]
68    pub const ActionXProtectError: Self = Self(-220);
69    #[doc(alias = "AMActionMalwareError")]
70    pub const ActionMalwareError: Self = Self(-221);
71    #[doc(alias = "AMActionThirdPartyActionsNotAllowedError")]
72    pub const ActionThirdPartyActionsNotAllowedError: Self = Self(-222);
73    #[doc(alias = "AMActionXPCError")]
74    pub const ActionXPCError: Self = Self(-223);
75    #[doc(alias = "AMConversionNotPossibleError")]
76    pub const ConversionNotPossibleError: Self = Self(-300);
77    #[doc(alias = "AMConversionNoDataError")]
78    pub const ConversionNoDataError: Self = Self(-301);
79    #[doc(alias = "AMConversionFailedError")]
80    pub const ConversionFailedError: Self = Self(-302);
81}
82
83unsafe impl Encode for AMErrorCode {
84    const ENCODING: Encoding = NSInteger::ENCODING;
85}
86
87unsafe impl RefEncode for AMErrorCode {
88    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
89}