]>
Commit | Line | Data |
---|---|---|
04454e1e | 1 | #[doc = "*Required features: `\"ApplicationModel_ExtendedExecution_Foreground\"`*"] |
5e7ed085 FG |
2 | #[repr(transparent)] |
3 | pub struct ExtendedExecutionForegroundReason(pub i32); | |
4 | impl ExtendedExecutionForegroundReason { | |
5 | pub const Unspecified: Self = Self(0i32); | |
6 | pub const SavingData: Self = Self(1i32); | |
7 | pub const BackgroundAudio: Self = Self(2i32); | |
8 | pub const Unconstrained: Self = Self(3i32); | |
9 | } | |
10 | impl ::core::marker::Copy for ExtendedExecutionForegroundReason {} | |
11 | impl ::core::clone::Clone for ExtendedExecutionForegroundReason { | |
12 | fn clone(&self) -> Self { | |
13 | *self | |
14 | } | |
15 | } | |
04454e1e | 16 | #[doc = "*Required features: `\"ApplicationModel_ExtendedExecution_Foreground\"`*"] |
5e7ed085 FG |
17 | #[repr(transparent)] |
18 | pub struct ExtendedExecutionForegroundResult(pub i32); | |
19 | impl ExtendedExecutionForegroundResult { | |
20 | pub const Allowed: Self = Self(0i32); | |
21 | pub const Denied: Self = Self(1i32); | |
22 | } | |
23 | impl ::core::marker::Copy for ExtendedExecutionForegroundResult {} | |
24 | impl ::core::clone::Clone for ExtendedExecutionForegroundResult { | |
25 | fn clone(&self) -> Self { | |
26 | *self | |
27 | } | |
28 | } | |
29 | pub type ExtendedExecutionForegroundRevokedEventArgs = *mut ::core::ffi::c_void; | |
04454e1e | 30 | #[doc = "*Required features: `\"ApplicationModel_ExtendedExecution_Foreground\"`*"] |
5e7ed085 FG |
31 | #[repr(transparent)] |
32 | pub struct ExtendedExecutionForegroundRevokedReason(pub i32); | |
33 | impl ExtendedExecutionForegroundRevokedReason { | |
34 | pub const Resumed: Self = Self(0i32); | |
35 | pub const SystemPolicy: Self = Self(1i32); | |
36 | } | |
37 | impl ::core::marker::Copy for ExtendedExecutionForegroundRevokedReason {} | |
38 | impl ::core::clone::Clone for ExtendedExecutionForegroundRevokedReason { | |
39 | fn clone(&self) -> Self { | |
40 | *self | |
41 | } | |
42 | } | |
43 | pub type ExtendedExecutionForegroundSession = *mut ::core::ffi::c_void; |