objc2_replay_kit/generated/
RPError.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/replaykit/rprecordingerrordomain?language=objc)
11    pub static RPRecordingErrorDomain: &'static NSString;
12}
13
14/// [Apple's documentation](https://developer.apple.com/documentation/replaykit/rprecordingerrorcode?language=objc)
15// NS_ENUM
16#[repr(transparent)]
17#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
18pub struct RPRecordingErrorCode(pub NSInteger);
19impl RPRecordingErrorCode {
20    #[doc(alias = "RPRecordingErrorUnknown")]
21    pub const Unknown: Self = Self(-5800);
22    #[doc(alias = "RPRecordingErrorUserDeclined")]
23    pub const UserDeclined: Self = Self(-5801);
24    #[doc(alias = "RPRecordingErrorDisabled")]
25    pub const Disabled: Self = Self(-5802);
26    #[doc(alias = "RPRecordingErrorFailedToStart")]
27    pub const FailedToStart: Self = Self(-5803);
28    #[doc(alias = "RPRecordingErrorFailed")]
29    pub const Failed: Self = Self(-5804);
30    #[doc(alias = "RPRecordingErrorInsufficientStorage")]
31    pub const InsufficientStorage: Self = Self(-5805);
32    #[doc(alias = "RPRecordingErrorInterrupted")]
33    pub const Interrupted: Self = Self(-5806);
34    #[doc(alias = "RPRecordingErrorContentResize")]
35    pub const ContentResize: Self = Self(-5807);
36    #[doc(alias = "RPRecordingErrorBroadcastInvalidSession")]
37    pub const BroadcastInvalidSession: Self = Self(-5808);
38    #[doc(alias = "RPRecordingErrorSystemDormancy")]
39    pub const SystemDormancy: Self = Self(-5809);
40    #[doc(alias = "RPRecordingErrorEntitlements")]
41    pub const Entitlements: Self = Self(-5810);
42    #[doc(alias = "RPRecordingErrorActivePhoneCall")]
43    pub const ActivePhoneCall: Self = Self(-5811);
44    #[doc(alias = "RPRecordingErrorFailedToSave")]
45    pub const FailedToSave: Self = Self(-5812);
46    #[doc(alias = "RPRecordingErrorCarPlay")]
47    pub const CarPlay: Self = Self(-5813);
48    #[doc(alias = "RPRecordingErrorFailedApplicationConnectionInvalid")]
49    pub const FailedApplicationConnectionInvalid: Self = Self(-5814);
50    #[doc(alias = "RPRecordingErrorFailedApplicationConnectionInterrupted")]
51    pub const FailedApplicationConnectionInterrupted: Self = Self(-5815);
52    #[doc(alias = "RPRecordingErrorFailedNoMatchingApplicationContext")]
53    pub const FailedNoMatchingApplicationContext: Self = Self(-5816);
54    #[doc(alias = "RPRecordingErrorFailedMediaServicesFailure")]
55    pub const FailedMediaServicesFailure: Self = Self(-5817);
56    #[doc(alias = "RPRecordingErrorVideoMixingFailure")]
57    pub const VideoMixingFailure: Self = Self(-5818);
58    #[doc(alias = "RPRecordingErrorBroadcastSetupFailed")]
59    pub const BroadcastSetupFailed: Self = Self(-5819);
60    #[doc(alias = "RPRecordingErrorFailedToObtainURL")]
61    pub const FailedToObtainURL: Self = Self(-5820);
62    #[doc(alias = "RPRecordingErrorFailedIncorrectTimeStamps")]
63    pub const FailedIncorrectTimeStamps: Self = Self(-5821);
64    #[doc(alias = "RPRecordingErrorFailedToProcessFirstSample")]
65    pub const FailedToProcessFirstSample: Self = Self(-5822);
66    #[doc(alias = "RPRecordingErrorFailedAssetWriterFailedToSave")]
67    pub const FailedAssetWriterFailedToSave: Self = Self(-5823);
68    #[doc(alias = "RPRecordingErrorFailedNoAssetWriter")]
69    pub const FailedNoAssetWriter: Self = Self(-5824);
70    #[doc(alias = "RPRecordingErrorFailedAssetWriterInWrongState")]
71    pub const FailedAssetWriterInWrongState: Self = Self(-5825);
72    #[doc(alias = "RPRecordingErrorFailedAssetWriterExportFailed")]
73    pub const FailedAssetWriterExportFailed: Self = Self(-5826);
74    #[doc(alias = "RPRecordingErrorFailedToRemoveFile")]
75    pub const FailedToRemoveFile: Self = Self(-5827);
76    #[doc(alias = "RPRecordingErrorFailedAssetWriterExportCanceled")]
77    pub const FailedAssetWriterExportCanceled: Self = Self(-5828);
78    #[doc(alias = "RPRecordingErrorAttemptToStopNonRecording")]
79    pub const AttemptToStopNonRecording: Self = Self(-5829);
80    #[doc(alias = "RPRecordingErrorAttemptToStartInRecordingState")]
81    pub const AttemptToStartInRecordingState: Self = Self(-5830);
82    #[doc(alias = "RPRecordingErrorPhotoFailure")]
83    pub const PhotoFailure: Self = Self(-5831);
84    #[doc(alias = "RPRecordingErrorRecordingInvalidSession")]
85    pub const RecordingInvalidSession: Self = Self(-5832);
86    #[doc(alias = "RPRecordingErrorFailedToStartCaptureStack")]
87    pub const FailedToStartCaptureStack: Self = Self(-5833);
88    #[doc(alias = "RPRecordingErrorInvalidParameter")]
89    pub const InvalidParameter: Self = Self(-5834);
90    #[doc(alias = "RPRecordingErrorFilePermissions")]
91    pub const FilePermissions: Self = Self(-5835);
92    #[doc(alias = "RPRecordingErrorExportClipToURLInProgress")]
93    pub const ExportClipToURLInProgress: Self = Self(-5836);
94    #[doc(alias = "RPRecordingErrorCodeSuccessful")]
95    pub const CodeSuccessful: Self = Self(0);
96}
97
98unsafe impl Encode for RPRecordingErrorCode {
99    const ENCODING: Encoding = NSInteger::ENCODING;
100}
101
102unsafe impl RefEncode for RPRecordingErrorCode {
103    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
104}