objc2_watch_connectivity/generated/
WCError.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern "C" {
10 pub static WCErrorDomain: &'static NSString;
12}
13
14#[repr(transparent)]
19#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
20pub struct WCErrorCode(pub NSInteger);
21impl WCErrorCode {
22 #[doc(alias = "WCErrorCodeGenericError")]
23 pub const GenericError: Self = Self(7001);
24 #[doc(alias = "WCErrorCodeSessionNotSupported")]
25 pub const SessionNotSupported: Self = Self(7002);
26 #[doc(alias = "WCErrorCodeSessionMissingDelegate")]
27 pub const SessionMissingDelegate: Self = Self(7003);
28 #[doc(alias = "WCErrorCodeSessionNotActivated")]
29 pub const SessionNotActivated: Self = Self(7004);
30 #[doc(alias = "WCErrorCodeDeviceNotPaired")]
31 pub const DeviceNotPaired: Self = Self(7005);
32 #[doc(alias = "WCErrorCodeWatchAppNotInstalled")]
33 pub const WatchAppNotInstalled: Self = Self(7006);
34 #[doc(alias = "WCErrorCodeNotReachable")]
35 pub const NotReachable: Self = Self(7007);
36 #[doc(alias = "WCErrorCodeInvalidParameter")]
37 pub const InvalidParameter: Self = Self(7008);
38 #[doc(alias = "WCErrorCodePayloadTooLarge")]
39 pub const PayloadTooLarge: Self = Self(7009);
40 #[doc(alias = "WCErrorCodePayloadUnsupportedTypes")]
41 pub const PayloadUnsupportedTypes: Self = Self(7010);
42 #[doc(alias = "WCErrorCodeMessageReplyFailed")]
43 pub const MessageReplyFailed: Self = Self(7011);
44 #[doc(alias = "WCErrorCodeMessageReplyTimedOut")]
45 pub const MessageReplyTimedOut: Self = Self(7012);
46 #[doc(alias = "WCErrorCodeFileAccessDenied")]
47 pub const FileAccessDenied: Self = Self(7013);
48 #[doc(alias = "WCErrorCodeDeliveryFailed")]
49 pub const DeliveryFailed: Self = Self(7014);
50 #[doc(alias = "WCErrorCodeInsufficientSpace")]
51 pub const InsufficientSpace: Self = Self(7015);
52 #[doc(alias = "WCErrorCodeSessionInactive")]
53 pub const SessionInactive: Self = Self(7016);
54 #[doc(alias = "WCErrorCodeTransferTimedOut")]
55 pub const TransferTimedOut: Self = Self(7017);
56 #[doc(alias = "WCErrorCodeCompanionAppNotInstalled")]
57 pub const CompanionAppNotInstalled: Self = Self(7018);
58 #[doc(alias = "WCErrorCodeWatchOnlyApp")]
59 pub const WatchOnlyApp: Self = Self(7019);
60}
61
62unsafe impl Encode for WCErrorCode {
63 const ENCODING: Encoding = NSInteger::ENCODING;
64}
65
66unsafe impl RefEncode for WCErrorCode {
67 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
68}