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