]> git.proxmox.com Git - rustc.git/blame - vendor/windows-sys/src/Windows/ApplicationModel/ExtendedExecution/Foreground/mod.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / vendor / windows-sys / src / Windows / ApplicationModel / ExtendedExecution / Foreground / mod.rs
CommitLineData
04454e1e 1#[doc = "*Required features: `\"ApplicationModel_ExtendedExecution_Foreground\"`*"]
5e7ed085
FG
2#[repr(transparent)]
3pub struct ExtendedExecutionForegroundReason(pub i32);
4impl 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}
10impl ::core::marker::Copy for ExtendedExecutionForegroundReason {}
11impl ::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)]
18pub struct ExtendedExecutionForegroundResult(pub i32);
19impl ExtendedExecutionForegroundResult {
20 pub const Allowed: Self = Self(0i32);
21 pub const Denied: Self = Self(1i32);
22}
23impl ::core::marker::Copy for ExtendedExecutionForegroundResult {}
24impl ::core::clone::Clone for ExtendedExecutionForegroundResult {
25 fn clone(&self) -> Self {
26 *self
27 }
28}
29pub type ExtendedExecutionForegroundRevokedEventArgs = *mut ::core::ffi::c_void;
04454e1e 30#[doc = "*Required features: `\"ApplicationModel_ExtendedExecution_Foreground\"`*"]
5e7ed085
FG
31#[repr(transparent)]
32pub struct ExtendedExecutionForegroundRevokedReason(pub i32);
33impl ExtendedExecutionForegroundRevokedReason {
34 pub const Resumed: Self = Self(0i32);
35 pub const SystemPolicy: Self = Self(1i32);
36}
37impl ::core::marker::Copy for ExtendedExecutionForegroundRevokedReason {}
38impl ::core::clone::Clone for ExtendedExecutionForegroundRevokedReason {
39 fn clone(&self) -> Self {
40 *self
41 }
42}
43pub type ExtendedExecutionForegroundSession = *mut ::core::ffi::c_void;