]> git.proxmox.com Git - rustc.git/blame - vendor/windows-sys/src/Windows/ApplicationModel/Background/mod.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / vendor / windows-sys / src / Windows / ApplicationModel / Background / mod.rs
CommitLineData
5e7ed085 1pub type ActivitySensorTrigger = *mut ::core::ffi::c_void;
04454e1e 2#[doc = "*Required features: `\"ApplicationModel_Background\"`*"]
5e7ed085
FG
3#[repr(transparent)]
4pub struct AlarmAccessStatus(pub i32);
5impl AlarmAccessStatus {
6 pub const Unspecified: Self = Self(0i32);
7 pub const AllowedWithWakeupCapability: Self = Self(1i32);
8 pub const AllowedWithoutWakeupCapability: Self = Self(2i32);
9 pub const Denied: Self = Self(3i32);
10}
11impl ::core::marker::Copy for AlarmAccessStatus {}
12impl ::core::clone::Clone for AlarmAccessStatus {
13 fn clone(&self) -> Self {
14 *self
15 }
16}
17pub type AppBroadcastTrigger = *mut ::core::ffi::c_void;
18pub type AppBroadcastTriggerProviderInfo = *mut ::core::ffi::c_void;
19pub type ApplicationTrigger = *mut ::core::ffi::c_void;
20pub type ApplicationTriggerDetails = *mut ::core::ffi::c_void;
04454e1e 21#[doc = "*Required features: `\"ApplicationModel_Background\"`*"]
5e7ed085
FG
22#[repr(transparent)]
23pub struct ApplicationTriggerResult(pub i32);
24impl ApplicationTriggerResult {
25 pub const Allowed: Self = Self(0i32);
26 pub const CurrentlyRunning: Self = Self(1i32);
27 pub const DisabledByPolicy: Self = Self(2i32);
28 pub const UnknownError: Self = Self(3i32);
29}
30impl ::core::marker::Copy for ApplicationTriggerResult {}
31impl ::core::clone::Clone for ApplicationTriggerResult {
32 fn clone(&self) -> Self {
33 *self
34 }
35}
36pub type AppointmentStoreNotificationTrigger = *mut ::core::ffi::c_void;
04454e1e 37#[doc = "*Required features: `\"ApplicationModel_Background\"`*"]
5e7ed085
FG
38#[repr(transparent)]
39pub struct BackgroundAccessRequestKind(pub i32);
40impl BackgroundAccessRequestKind {
41 pub const AlwaysAllowed: Self = Self(0i32);
42 pub const AllowedSubjectToSystemPolicy: Self = Self(1i32);
43}
44impl ::core::marker::Copy for BackgroundAccessRequestKind {}
45impl ::core::clone::Clone for BackgroundAccessRequestKind {
46 fn clone(&self) -> Self {
47 *self
48 }
49}
04454e1e 50#[doc = "*Required features: `\"ApplicationModel_Background\"`*"]
5e7ed085
FG
51#[repr(transparent)]
52pub struct BackgroundAccessStatus(pub i32);
53impl BackgroundAccessStatus {
54 pub const Unspecified: Self = Self(0i32);
55 pub const AllowedWithAlwaysOnRealTimeConnectivity: Self = Self(1i32);
56 pub const AllowedMayUseActiveRealTimeConnectivity: Self = Self(2i32);
57 pub const Denied: Self = Self(3i32);
58 pub const AlwaysAllowed: Self = Self(4i32);
59 pub const AllowedSubjectToSystemPolicy: Self = Self(5i32);
60 pub const DeniedBySystemPolicy: Self = Self(6i32);
61 pub const DeniedByUser: Self = Self(7i32);
62}
63impl ::core::marker::Copy for BackgroundAccessStatus {}
64impl ::core::clone::Clone for BackgroundAccessStatus {
65 fn clone(&self) -> Self {
66 *self
67 }
68}
69pub type BackgroundTaskBuilder = *mut ::core::ffi::c_void;
70pub type BackgroundTaskCanceledEventHandler = *mut ::core::ffi::c_void;
04454e1e 71#[doc = "*Required features: `\"ApplicationModel_Background\"`*"]
5e7ed085
FG
72#[repr(transparent)]
73pub struct BackgroundTaskCancellationReason(pub i32);
74impl BackgroundTaskCancellationReason {
75 pub const Abort: Self = Self(0i32);
76 pub const Terminating: Self = Self(1i32);
77 pub const LoggingOff: Self = Self(2i32);
78 pub const ServicingUpdate: Self = Self(3i32);
79 pub const IdleTask: Self = Self(4i32);
80 pub const Uninstall: Self = Self(5i32);
81 pub const ConditionLoss: Self = Self(6i32);
82 pub const SystemPolicy: Self = Self(7i32);
83 pub const QuietHoursEntered: Self = Self(8i32);
84 pub const ExecutionTimeExceeded: Self = Self(9i32);
85 pub const ResourceRevocation: Self = Self(10i32);
86 pub const EnergySaver: Self = Self(11i32);
87}
88impl ::core::marker::Copy for BackgroundTaskCancellationReason {}
89impl ::core::clone::Clone for BackgroundTaskCancellationReason {
90 fn clone(&self) -> Self {
91 *self
92 }
93}
94pub type BackgroundTaskCompletedEventArgs = *mut ::core::ffi::c_void;
95pub type BackgroundTaskCompletedEventHandler = *mut ::core::ffi::c_void;
96pub type BackgroundTaskDeferral = *mut ::core::ffi::c_void;
97pub type BackgroundTaskProgressEventArgs = *mut ::core::ffi::c_void;
98pub type BackgroundTaskProgressEventHandler = *mut ::core::ffi::c_void;
99pub type BackgroundTaskRegistration = *mut ::core::ffi::c_void;
100pub type BackgroundTaskRegistrationGroup = *mut ::core::ffi::c_void;
04454e1e 101#[doc = "*Required features: `\"ApplicationModel_Background\"`*"]
5e7ed085
FG
102#[repr(transparent)]
103pub struct BackgroundTaskThrottleCounter(pub i32);
104impl BackgroundTaskThrottleCounter {
105 pub const All: Self = Self(0i32);
106 pub const Cpu: Self = Self(1i32);
107 pub const Network: Self = Self(2i32);
108}
109impl ::core::marker::Copy for BackgroundTaskThrottleCounter {}
110impl ::core::clone::Clone for BackgroundTaskThrottleCounter {
111 fn clone(&self) -> Self {
112 *self
113 }
114}
04454e1e 115#[doc = "*Required features: `\"ApplicationModel_Background\"`*"]
5e7ed085
FG
116#[repr(transparent)]
117pub struct BackgroundWorkCostValue(pub i32);
118impl BackgroundWorkCostValue {
119 pub const Low: Self = Self(0i32);
120 pub const Medium: Self = Self(1i32);
121 pub const High: Self = Self(2i32);
122}
123impl ::core::marker::Copy for BackgroundWorkCostValue {}
124impl ::core::clone::Clone for BackgroundWorkCostValue {
125 fn clone(&self) -> Self {
126 *self
127 }
128}
129pub type BluetoothLEAdvertisementPublisherTrigger = *mut ::core::ffi::c_void;
130pub type BluetoothLEAdvertisementWatcherTrigger = *mut ::core::ffi::c_void;
131pub type CachedFileUpdaterTrigger = *mut ::core::ffi::c_void;
132pub type CachedFileUpdaterTriggerDetails = *mut ::core::ffi::c_void;
133pub type ChatMessageNotificationTrigger = *mut ::core::ffi::c_void;
134pub type ChatMessageReceivedNotificationTrigger = *mut ::core::ffi::c_void;
135pub type CommunicationBlockingAppSetAsActiveTrigger = *mut ::core::ffi::c_void;
136pub type ContactStoreNotificationTrigger = *mut ::core::ffi::c_void;
137pub type ContentPrefetchTrigger = *mut ::core::ffi::c_void;
138pub type ConversationalAgentTrigger = *mut ::core::ffi::c_void;
139pub type CustomSystemEventTrigger = *mut ::core::ffi::c_void;
04454e1e 140#[doc = "*Required features: `\"ApplicationModel_Background\"`*"]
5e7ed085
FG
141#[repr(transparent)]
142pub struct CustomSystemEventTriggerRecurrence(pub i32);
143impl CustomSystemEventTriggerRecurrence {
144 pub const Once: Self = Self(0i32);
145 pub const Always: Self = Self(1i32);
146}
147impl ::core::marker::Copy for CustomSystemEventTriggerRecurrence {}
148impl ::core::clone::Clone for CustomSystemEventTriggerRecurrence {
149 fn clone(&self) -> Self {
150 *self
151 }
152}
153pub type DeviceConnectionChangeTrigger = *mut ::core::ffi::c_void;
154pub type DeviceManufacturerNotificationTrigger = *mut ::core::ffi::c_void;
155pub type DeviceServicingTrigger = *mut ::core::ffi::c_void;
04454e1e 156#[doc = "*Required features: `\"ApplicationModel_Background\"`*"]
5e7ed085
FG
157#[repr(transparent)]
158pub struct DeviceTriggerResult(pub i32);
159impl DeviceTriggerResult {
160 pub const Allowed: Self = Self(0i32);
161 pub const DeniedByUser: Self = Self(1i32);
162 pub const DeniedBySystem: Self = Self(2i32);
163 pub const LowBattery: Self = Self(3i32);
164}
165impl ::core::marker::Copy for DeviceTriggerResult {}
166impl ::core::clone::Clone for DeviceTriggerResult {
167 fn clone(&self) -> Self {
168 *self
169 }
170}
171pub type DeviceUseTrigger = *mut ::core::ffi::c_void;
172pub type DeviceWatcherTrigger = *mut ::core::ffi::c_void;
173pub type EmailStoreNotificationTrigger = *mut ::core::ffi::c_void;
174pub type GattCharacteristicNotificationTrigger = *mut ::core::ffi::c_void;
175pub type GattServiceProviderTrigger = *mut ::core::ffi::c_void;
176pub type GattServiceProviderTriggerResult = *mut ::core::ffi::c_void;
177pub type GeovisitTrigger = *mut ::core::ffi::c_void;
178pub type IBackgroundCondition = *mut ::core::ffi::c_void;
179pub type IBackgroundTask = *mut ::core::ffi::c_void;
180pub type IBackgroundTaskInstance = *mut ::core::ffi::c_void;
181pub type IBackgroundTaskInstance2 = *mut ::core::ffi::c_void;
182pub type IBackgroundTaskInstance4 = *mut ::core::ffi::c_void;
183pub type IBackgroundTaskRegistration = *mut ::core::ffi::c_void;
184pub type IBackgroundTaskRegistration2 = *mut ::core::ffi::c_void;
185pub type IBackgroundTaskRegistration3 = *mut ::core::ffi::c_void;
186pub type IBackgroundTrigger = *mut ::core::ffi::c_void;
187pub type LocationTrigger = *mut ::core::ffi::c_void;
04454e1e 188#[doc = "*Required features: `\"ApplicationModel_Background\"`*"]
5e7ed085
FG
189#[repr(transparent)]
190pub struct LocationTriggerType(pub i32);
191impl LocationTriggerType {
192 pub const Geofence: Self = Self(0i32);
193}
194impl ::core::marker::Copy for LocationTriggerType {}
195impl ::core::clone::Clone for LocationTriggerType {
196 fn clone(&self) -> Self {
197 *self
198 }
199}
200pub type MaintenanceTrigger = *mut ::core::ffi::c_void;
201pub type MediaProcessingTrigger = *mut ::core::ffi::c_void;
04454e1e 202#[doc = "*Required features: `\"ApplicationModel_Background\"`*"]
5e7ed085
FG
203#[repr(transparent)]
204pub struct MediaProcessingTriggerResult(pub i32);
205impl MediaProcessingTriggerResult {
206 pub const Allowed: Self = Self(0i32);
207 pub const CurrentlyRunning: Self = Self(1i32);
208 pub const DisabledByPolicy: Self = Self(2i32);
209 pub const UnknownError: Self = Self(3i32);
210}
211impl ::core::marker::Copy for MediaProcessingTriggerResult {}
212impl ::core::clone::Clone for MediaProcessingTriggerResult {
213 fn clone(&self) -> Self {
214 *self
215 }
216}
217pub type MobileBroadbandDeviceServiceNotificationTrigger = *mut ::core::ffi::c_void;
218pub type MobileBroadbandPcoDataChangeTrigger = *mut ::core::ffi::c_void;
219pub type MobileBroadbandPinLockStateChangeTrigger = *mut ::core::ffi::c_void;
220pub type MobileBroadbandRadioStateChangeTrigger = *mut ::core::ffi::c_void;
221pub type MobileBroadbandRegistrationStateChangeTrigger = *mut ::core::ffi::c_void;
222pub type NetworkOperatorDataUsageTrigger = *mut ::core::ffi::c_void;
223pub type NetworkOperatorHotspotAuthenticationTrigger = *mut ::core::ffi::c_void;
224pub type NetworkOperatorNotificationTrigger = *mut ::core::ffi::c_void;
225pub type PaymentAppCanMakePaymentTrigger = *mut ::core::ffi::c_void;
226pub type PhoneTrigger = *mut ::core::ffi::c_void;
227pub type PushNotificationTrigger = *mut ::core::ffi::c_void;
228pub type RcsEndUserMessageAvailableTrigger = *mut ::core::ffi::c_void;
229pub type RfcommConnectionTrigger = *mut ::core::ffi::c_void;
230pub type SecondaryAuthenticationFactorAuthenticationTrigger = *mut ::core::ffi::c_void;
231pub type SensorDataThresholdTrigger = *mut ::core::ffi::c_void;
232pub type SmartCardTrigger = *mut ::core::ffi::c_void;
233pub type SmsMessageReceivedTrigger = *mut ::core::ffi::c_void;
234pub type SocketActivityTrigger = *mut ::core::ffi::c_void;
235pub type StorageLibraryChangeTrackerTrigger = *mut ::core::ffi::c_void;
236pub type StorageLibraryContentChangedTrigger = *mut ::core::ffi::c_void;
237pub type SystemCondition = *mut ::core::ffi::c_void;
04454e1e 238#[doc = "*Required features: `\"ApplicationModel_Background\"`*"]
5e7ed085
FG
239#[repr(transparent)]
240pub struct SystemConditionType(pub i32);
241impl SystemConditionType {
242 pub const Invalid: Self = Self(0i32);
243 pub const UserPresent: Self = Self(1i32);
244 pub const UserNotPresent: Self = Self(2i32);
245 pub const InternetAvailable: Self = Self(3i32);
246 pub const InternetNotAvailable: Self = Self(4i32);
247 pub const SessionConnected: Self = Self(5i32);
248 pub const SessionDisconnected: Self = Self(6i32);
249 pub const FreeNetworkAvailable: Self = Self(7i32);
250 pub const BackgroundWorkCostNotHigh: Self = Self(8i32);
251}
252impl ::core::marker::Copy for SystemConditionType {}
253impl ::core::clone::Clone for SystemConditionType {
254 fn clone(&self) -> Self {
255 *self
256 }
257}
258pub type SystemTrigger = *mut ::core::ffi::c_void;
04454e1e 259#[doc = "*Required features: `\"ApplicationModel_Background\"`*"]
5e7ed085
FG
260#[repr(transparent)]
261pub struct SystemTriggerType(pub i32);
262impl SystemTriggerType {
263 pub const Invalid: Self = Self(0i32);
264 pub const SmsReceived: Self = Self(1i32);
265 pub const UserPresent: Self = Self(2i32);
266 pub const UserAway: Self = Self(3i32);
267 pub const NetworkStateChange: Self = Self(4i32);
268 pub const ControlChannelReset: Self = Self(5i32);
269 pub const InternetAvailable: Self = Self(6i32);
270 pub const SessionConnected: Self = Self(7i32);
271 pub const ServicingComplete: Self = Self(8i32);
272 pub const LockScreenApplicationAdded: Self = Self(9i32);
273 pub const LockScreenApplicationRemoved: Self = Self(10i32);
274 pub const TimeZoneChange: Self = Self(11i32);
275 pub const OnlineIdConnectedStateChange: Self = Self(12i32);
276 pub const BackgroundWorkCostChange: Self = Self(13i32);
277 pub const PowerStateChange: Self = Self(14i32);
278 pub const DefaultSignInAccountChange: Self = Self(15i32);
279}
280impl ::core::marker::Copy for SystemTriggerType {}
281impl ::core::clone::Clone for SystemTriggerType {
282 fn clone(&self) -> Self {
283 *self
284 }
285}
286pub type TetheringEntitlementCheckTrigger = *mut ::core::ffi::c_void;
287pub type TimeTrigger = *mut ::core::ffi::c_void;
288pub type ToastNotificationActionTrigger = *mut ::core::ffi::c_void;
289pub type ToastNotificationHistoryChangedTrigger = *mut ::core::ffi::c_void;
290pub type UserNotificationChangedTrigger = *mut ::core::ffi::c_void;