objc2_tv_ml_kit/generated/
TVMLKitErrors.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/tvmlkit/tvmlkiterrordomain?language=objc)
11    #[deprecated = "Please use SwiftUI or UIKit"]
12    pub static TVMLKitErrorDomain: &'static NSString;
13}
14
15/// [Apple's documentation](https://developer.apple.com/documentation/tvmlkit/tvmlkiterror?language=objc)
16// NS_ENUM
17#[deprecated = "Please use SwiftUI or UIKit"]
18#[repr(transparent)]
19#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
20pub struct TVMLKitError(pub NSInteger);
21impl TVMLKitError {
22    #[doc(alias = "TVMLKitErrorUnknown")]
23    #[deprecated = "Please use SwiftUI or UIKit"]
24    pub const Unknown: Self = Self(1);
25    #[doc(alias = "TVMLKitErrorInternetUnavailable")]
26    #[deprecated = "Please use SwiftUI or UIKit"]
27    pub const InternetUnavailable: Self = Self(2);
28    #[doc(alias = "TVMLKitErrorFailedToLaunch")]
29    #[deprecated = "Please use SwiftUI or UIKit"]
30    pub const FailedToLaunch: Self = Self(3);
31    #[doc(alias = "TVMLKitErrorLast")]
32    #[deprecated = "Please use SwiftUI or UIKit"]
33    pub const Last: Self = Self(4);
34}
35
36unsafe impl Encode for TVMLKitError {
37    const ENCODING: Encoding = NSInteger::ENCODING;
38}
39
40unsafe impl RefEncode for TVMLKitError {
41    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
42}