objc2_background_assets/generated/
BAError.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern "C" {
10 pub static BAErrorDomain: &'static NSString;
14}
15
16#[repr(transparent)]
19#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
20pub struct BAErrorCode(pub NSInteger);
21impl BAErrorCode {
22 #[doc(alias = "BAErrorCodeDownloadInvalid")]
23 pub const DownloadInvalid: Self = Self(0);
24 #[doc(alias = "BAErrorCodeCallFromExtensionNotAllowed")]
25 pub const CallFromExtensionNotAllowed: Self = Self(50);
26 #[doc(alias = "BAErrorCodeCallFromInactiveProcessNotAllowed")]
27 pub const CallFromInactiveProcessNotAllowed: Self = Self(51);
28 #[doc(alias = "BAErrorCodeCallerConnectionNotAccepted")]
29 pub const CallerConnectionNotAccepted: Self = Self(55);
30 #[doc(alias = "BAErrorCodeCallerConnectionInvalid")]
31 pub const CallerConnectionInvalid: Self = Self(56);
32 #[doc(alias = "BAErrorCodeDownloadAlreadyScheduled")]
33 pub const DownloadAlreadyScheduled: Self = Self(100);
34 #[doc(alias = "BAErrorCodeDownloadNotScheduled")]
35 pub const DownloadNotScheduled: Self = Self(101);
36 #[doc(alias = "BAErrorCodeDownloadFailedToStart")]
37 pub const DownloadFailedToStart: Self = Self(102);
38 #[doc(alias = "BAErrorCodeDownloadAlreadyFailed")]
39 pub const DownloadAlreadyFailed: Self = Self(103);
40 #[doc(alias = "BAErrorCodeDownloadEssentialDownloadNotPermitted")]
41 pub const DownloadEssentialDownloadNotPermitted: Self = Self(109);
42 #[doc(alias = "BAErrorCodeDownloadBackgroundActivityProhibited")]
43 pub const DownloadBackgroundActivityProhibited: Self = Self(111);
44 #[doc(alias = "BAErrorCodeDownloadWouldExceedAllowance")]
45 pub const DownloadWouldExceedAllowance: Self = Self(112);
46 #[doc(alias = "BAErrorCodeDownloadDoesNotExist")]
47 pub const DownloadDoesNotExist: Self = Self(113);
48 #[doc(alias = "BAErrorCodeSessionDownloadDisallowedByDomain")]
49 pub const SessionDownloadDisallowedByDomain: Self = Self(202);
50 #[doc(alias = "BAErrorCodeSessionDownloadDisallowedByAllowance")]
51 pub const SessionDownloadDisallowedByAllowance: Self = Self(203);
52 #[doc(alias = "BAErrorCodeSessionDownloadAllowanceExceeded")]
53 pub const SessionDownloadAllowanceExceeded: Self = Self(204);
54 #[doc(alias = "BAErrorCodeSessionDownloadNotPermittedBeforeAppLaunch")]
55 pub const SessionDownloadNotPermittedBeforeAppLaunch: Self = Self(206);
56}
57
58unsafe impl Encode for BAErrorCode {
59 const ENCODING: Encoding = NSInteger::ENCODING;
60}
61
62unsafe impl RefEncode for BAErrorCode {
63 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
64}