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