icrate/generated/EventKit/
EKError.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use crate::common::*;
4use crate::AppKit::*;
5use crate::CoreLocation::*;
6use crate::EventKit::*;
7use crate::Foundation::*;
8use crate::MapKit::*;
9
10extern_static!(EKErrorDomain: Option<&'static NSString>);
11
12ns_enum!(
13    #[underlying(NSInteger)]
14    pub enum EKErrorCode {
15        EKErrorEventNotMutable = 0,
16        EKErrorNoCalendar = 1,
17        EKErrorNoStartDate = 2,
18        EKErrorNoEndDate = 3,
19        EKErrorDatesInverted = 4,
20        EKErrorInternalFailure = 5,
21        EKErrorCalendarReadOnly = 6,
22        EKErrorDurationGreaterThanRecurrence = 7,
23        EKErrorAlarmGreaterThanRecurrence = 8,
24        EKErrorStartDateTooFarInFuture = 9,
25        EKErrorStartDateCollidesWithOtherOccurrence = 10,
26        EKErrorObjectBelongsToDifferentStore = 11,
27        EKErrorInvitesCannotBeMoved = 12,
28        EKErrorInvalidSpan = 13,
29        EKErrorCalendarHasNoSource = 14,
30        EKErrorCalendarSourceCannotBeModified = 15,
31        EKErrorCalendarIsImmutable = 16,
32        EKErrorSourceDoesNotAllowCalendarAddDelete = 17,
33        EKErrorRecurringReminderRequiresDueDate = 18,
34        EKErrorStructuredLocationsNotSupported = 19,
35        EKErrorReminderLocationsNotSupported = 20,
36        EKErrorAlarmProximityNotSupported = 21,
37        EKErrorCalendarDoesNotAllowEvents = 22,
38        EKErrorCalendarDoesNotAllowReminders = 23,
39        EKErrorSourceDoesNotAllowReminders = 24,
40        EKErrorSourceDoesNotAllowEvents = 25,
41        EKErrorPriorityIsInvalid = 26,
42        EKErrorInvalidEntityType = 27,
43        EKErrorProcedureAlarmsNotMutable = 28,
44        EKErrorEventStoreNotAuthorized = 29,
45        EKErrorOSNotSupported = 30,
46        EKErrorInvalidInviteReplyCalendar = 31,
47        EKErrorNotificationsCollectionFlagNotSet = 32,
48        EKErrorSourceMismatch = 33,
49        EKErrorNotificationCollectionMismatch = 34,
50        EKErrorNotificationSavedWithoutCollection = 35,
51        EKErrorReminderAlarmContainsEmailOrUrl = 36,
52        EKErrorLast = 37,
53    }
54);