objc2_cinematic/generated/
CNCinematicError.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/cinematic/cncinematicerrordomain?language=objc)
11    pub static CNCinematicErrorDomain: &'static NSErrorDomain;
12}
13
14/// [Apple's documentation](https://developer.apple.com/documentation/cinematic/cncinematicerrorcode?language=objc)
15// NS_ERROR_ENUM
16#[repr(transparent)]
17#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
18pub struct CNCinematicErrorCode(pub NSInteger);
19impl CNCinematicErrorCode {
20    #[doc(alias = "CNCinematicErrorCodeUnknown")]
21    pub const Unknown: Self = Self(1);
22    #[doc(alias = "CNCinematicErrorCodeUnreadable")]
23    pub const Unreadable: Self = Self(2);
24    #[doc(alias = "CNCinematicErrorCodeIncomplete")]
25    pub const Incomplete: Self = Self(3);
26    #[doc(alias = "CNCinematicErrorCodeMalformed")]
27    pub const Malformed: Self = Self(4);
28    #[doc(alias = "CNCinematicErrorCodeUnsupported")]
29    pub const Unsupported: Self = Self(5);
30    #[doc(alias = "CNCinematicErrorCodeIncompatible")]
31    pub const Incompatible: Self = Self(6);
32    #[doc(alias = "CNCinematicErrorCodeCancelled")]
33    pub const Cancelled: Self = Self(7);
34}
35
36unsafe impl Encode for CNCinematicErrorCode {
37    const ENCODING: Encoding = NSInteger::ENCODING;
38}
39
40unsafe impl RefEncode for CNCinematicErrorCode {
41    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
42}