objc2_background_assets/generated/
BATypes.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use objc2::__framework_prelude::*;
4
5use crate::*;
6
7/// The content request type used in the BADownloaderExtension.
8///
9/// See also [Apple's documentation](https://developer.apple.com/documentation/backgroundassets/bacontentrequest?language=objc)
10// NS_ENUM
11#[repr(transparent)]
12#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
13pub struct BAContentRequest(pub NSInteger);
14impl BAContentRequest {
15    #[doc(alias = "BAContentRequestInstall")]
16    pub const Install: Self = Self(1);
17    #[doc(alias = "BAContentRequestUpdate")]
18    pub const Update: Self = Self(2);
19    #[doc(alias = "BAContentRequestPeriodic")]
20    pub const Periodic: Self = Self(3);
21}
22
23unsafe impl Encode for BAContentRequest {
24    const ENCODING: Encoding = NSInteger::ENCODING;
25}
26
27unsafe impl RefEncode for BAContentRequest {
28    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
29}