]> git.proxmox.com Git - rustc.git/blob - vendor/windows-sys-0.28.0/src/Windows/Devices/Geolocation/Geofencing/mod.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / vendor / windows-sys-0.28.0 / src / Windows / Devices / Geolocation / Geofencing / mod.rs
1 #![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)]
2 #[link(name = "windows")]
3 extern "system" {}
4 pub type Geofence = *mut ::core::ffi::c_void;
5 pub type GeofenceMonitor = *mut ::core::ffi::c_void;
6 #[repr(transparent)]
7 pub struct GeofenceMonitorStatus(pub i32);
8 impl GeofenceMonitorStatus {
9 pub const Ready: Self = Self(0i32);
10 pub const Initializing: Self = Self(1i32);
11 pub const NoData: Self = Self(2i32);
12 pub const Disabled: Self = Self(3i32);
13 pub const NotInitialized: Self = Self(4i32);
14 pub const NotAvailable: Self = Self(5i32);
15 }
16 impl ::core::marker::Copy for GeofenceMonitorStatus {}
17 impl ::core::clone::Clone for GeofenceMonitorStatus {
18 fn clone(&self) -> Self {
19 *self
20 }
21 }
22 #[repr(transparent)]
23 pub struct GeofenceRemovalReason(pub i32);
24 impl GeofenceRemovalReason {
25 pub const Used: Self = Self(0i32);
26 pub const Expired: Self = Self(1i32);
27 }
28 impl ::core::marker::Copy for GeofenceRemovalReason {}
29 impl ::core::clone::Clone for GeofenceRemovalReason {
30 fn clone(&self) -> Self {
31 *self
32 }
33 }
34 #[repr(transparent)]
35 pub struct GeofenceState(pub u32);
36 impl GeofenceState {
37 pub const None: Self = Self(0u32);
38 pub const Entered: Self = Self(1u32);
39 pub const Exited: Self = Self(2u32);
40 pub const Removed: Self = Self(4u32);
41 }
42 impl ::core::marker::Copy for GeofenceState {}
43 impl ::core::clone::Clone for GeofenceState {
44 fn clone(&self) -> Self {
45 *self
46 }
47 }
48 pub type GeofenceStateChangeReport = *mut ::core::ffi::c_void;
49 #[repr(transparent)]
50 pub struct MonitoredGeofenceStates(pub u32);
51 impl MonitoredGeofenceStates {
52 pub const None: Self = Self(0u32);
53 pub const Entered: Self = Self(1u32);
54 pub const Exited: Self = Self(2u32);
55 pub const Removed: Self = Self(4u32);
56 }
57 impl ::core::marker::Copy for MonitoredGeofenceStates {}
58 impl ::core::clone::Clone for MonitoredGeofenceStates {
59 fn clone(&self) -> Self {
60 *self
61 }
62 }