objc2_watch_kit/generated/
WKError.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern "C" {
10    /// [Apple's documentation](https://developer.apple.com/documentation/watchkit/watchkiterrordomain?language=objc)
11    pub static WatchKitErrorDomain: &'static NSString;
12}
13
14/// [Apple's documentation](https://developer.apple.com/documentation/watchkit/watchkiterrorcode?language=objc)
15// NS_ENUM
16#[repr(transparent)]
17#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
18pub struct WatchKitErrorCode(pub NSInteger);
19impl WatchKitErrorCode {
20    #[doc(alias = "WatchKitUnknownError")]
21    pub const UnknownError: Self = Self(1);
22    #[doc(alias = "WatchKitApplicationDelegateWatchKitRequestReplyNotCalledError")]
23    pub const ApplicationDelegateWatchKitRequestReplyNotCalledError: Self = Self(2);
24    #[doc(alias = "WatchKitInvalidArgumentError")]
25    pub const InvalidArgumentError: Self = Self(3);
26    #[doc(alias = "WatchKitMediaPlayerError")]
27    pub const MediaPlayerError: Self = Self(4);
28    #[doc(alias = "WatchKitDownloadError")]
29    pub const DownloadError: Self = Self(5);
30    #[doc(alias = "WatchKitRecordingFailedError")]
31    pub const RecordingFailedError: Self = Self(6);
32}
33
34unsafe impl Encode for WatchKitErrorCode {
35    const ENCODING: Encoding = NSInteger::ENCODING;
36}
37
38unsafe impl RefEncode for WatchKitErrorCode {
39    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
40}