objc2_event_kit/generated/
EKError.rs1use objc2::__framework_prelude::*;
4use objc2_foundation::*;
5
6use crate::*;
7
8extern "C" {
9 pub static EKErrorDomain: Option<&'static NSString>;
16}
17
18#[repr(transparent)]
21#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
22pub struct EKErrorCode(pub NSInteger);
23impl EKErrorCode {
24 #[doc(alias = "EKErrorEventNotMutable")]
25 pub const EventNotMutable: Self = Self(0);
26 #[doc(alias = "EKErrorNoCalendar")]
27 pub const NoCalendar: Self = Self(1);
28 #[doc(alias = "EKErrorNoStartDate")]
29 pub const NoStartDate: Self = Self(2);
30 #[doc(alias = "EKErrorNoEndDate")]
31 pub const NoEndDate: Self = Self(3);
32 #[doc(alias = "EKErrorDatesInverted")]
33 pub const DatesInverted: Self = Self(4);
34 #[doc(alias = "EKErrorInternalFailure")]
35 pub const InternalFailure: Self = Self(5);
36 #[doc(alias = "EKErrorCalendarReadOnly")]
37 pub const CalendarReadOnly: Self = Self(6);
38 #[doc(alias = "EKErrorDurationGreaterThanRecurrence")]
39 pub const DurationGreaterThanRecurrence: Self = Self(7);
40 #[doc(alias = "EKErrorAlarmGreaterThanRecurrence")]
41 pub const AlarmGreaterThanRecurrence: Self = Self(8);
42 #[doc(alias = "EKErrorStartDateTooFarInFuture")]
43 pub const StartDateTooFarInFuture: Self = Self(9);
44 #[doc(alias = "EKErrorStartDateCollidesWithOtherOccurrence")]
45 pub const StartDateCollidesWithOtherOccurrence: Self = Self(10);
46 #[doc(alias = "EKErrorObjectBelongsToDifferentStore")]
47 pub const ObjectBelongsToDifferentStore: Self = Self(11);
48 #[doc(alias = "EKErrorInvitesCannotBeMoved")]
49 pub const InvitesCannotBeMoved: Self = Self(12);
50 #[doc(alias = "EKErrorInvalidSpan")]
51 pub const InvalidSpan: Self = Self(13);
52 #[doc(alias = "EKErrorCalendarHasNoSource")]
53 pub const CalendarHasNoSource: Self = Self(14);
54 #[doc(alias = "EKErrorCalendarSourceCannotBeModified")]
55 pub const CalendarSourceCannotBeModified: Self = Self(15);
56 #[doc(alias = "EKErrorCalendarIsImmutable")]
57 pub const CalendarIsImmutable: Self = Self(16);
58 #[doc(alias = "EKErrorSourceDoesNotAllowCalendarAddDelete")]
59 pub const SourceDoesNotAllowCalendarAddDelete: Self = Self(17);
60 #[doc(alias = "EKErrorRecurringReminderRequiresDueDate")]
61 pub const RecurringReminderRequiresDueDate: Self = Self(18);
62 #[doc(alias = "EKErrorStructuredLocationsNotSupported")]
63 pub const StructuredLocationsNotSupported: Self = Self(19);
64 #[doc(alias = "EKErrorReminderLocationsNotSupported")]
65 pub const ReminderLocationsNotSupported: Self = Self(20);
66 #[doc(alias = "EKErrorAlarmProximityNotSupported")]
67 pub const AlarmProximityNotSupported: Self = Self(21);
68 #[doc(alias = "EKErrorCalendarDoesNotAllowEvents")]
69 pub const CalendarDoesNotAllowEvents: Self = Self(22);
70 #[doc(alias = "EKErrorCalendarDoesNotAllowReminders")]
71 pub const CalendarDoesNotAllowReminders: Self = Self(23);
72 #[doc(alias = "EKErrorSourceDoesNotAllowReminders")]
73 pub const SourceDoesNotAllowReminders: Self = Self(24);
74 #[doc(alias = "EKErrorSourceDoesNotAllowEvents")]
75 pub const SourceDoesNotAllowEvents: Self = Self(25);
76 #[doc(alias = "EKErrorPriorityIsInvalid")]
77 pub const PriorityIsInvalid: Self = Self(26);
78 #[doc(alias = "EKErrorInvalidEntityType")]
79 pub const InvalidEntityType: Self = Self(27);
80 #[doc(alias = "EKErrorProcedureAlarmsNotMutable")]
81 pub const ProcedureAlarmsNotMutable: Self = Self(28);
82 #[doc(alias = "EKErrorEventStoreNotAuthorized")]
83 pub const EventStoreNotAuthorized: Self = Self(29);
84 #[doc(alias = "EKErrorOSNotSupported")]
85 pub const OSNotSupported: Self = Self(30);
86 #[doc(alias = "EKErrorInvalidInviteReplyCalendar")]
87 pub const InvalidInviteReplyCalendar: Self = Self(31);
88 #[doc(alias = "EKErrorNotificationsCollectionFlagNotSet")]
89 pub const NotificationsCollectionFlagNotSet: Self = Self(32);
90 #[doc(alias = "EKErrorSourceMismatch")]
91 pub const SourceMismatch: Self = Self(33);
92 #[doc(alias = "EKErrorNotificationCollectionMismatch")]
93 pub const NotificationCollectionMismatch: Self = Self(34);
94 #[doc(alias = "EKErrorNotificationSavedWithoutCollection")]
95 pub const NotificationSavedWithoutCollection: Self = Self(35);
96 #[doc(alias = "EKErrorReminderAlarmContainsEmailOrUrl")]
97 pub const ReminderAlarmContainsEmailOrUrl: Self = Self(36);
98 #[doc(alias = "EKErrorLast")]
99 pub const Last: Self = Self(37);
100}
101
102unsafe impl Encode for EKErrorCode {
103 const ENCODING: Encoding = NSInteger::ENCODING;
104}
105
106unsafe impl RefEncode for EKErrorCode {
107 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
108}