]> git.proxmox.com Git - rustc.git/blob - vendor/windows/src/Windows/Services/Maps/OfflineMaps/mod.rs
New upstream version 1.70.0+dfsg1
[rustc.git] / vendor / windows / src / Windows / Services / Maps / OfflineMaps / mod.rs
1 #[doc(hidden)]
2 #[repr(transparent)]
3 pub struct IOfflineMapPackage(::windows::core::IUnknown);
4 unsafe impl ::windows::core::Interface for IOfflineMapPackage {
5 type Vtable = IOfflineMapPackage_Vtbl;
6 }
7 impl ::core::clone::Clone for IOfflineMapPackage {
8 fn clone(&self) -> Self {
9 Self(self.0.clone())
10 }
11 }
12 unsafe impl ::windows::core::ComInterface for IOfflineMapPackage {
13 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa797673b_a5b5_4144_b525_e68c8862664b);
14 }
15 #[repr(C)]
16 #[doc(hidden)]
17 pub struct IOfflineMapPackage_Vtbl {
18 pub base__: ::windows::core::IInspectable_Vtbl,
19 pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut OfflineMapPackageStatus) -> ::windows::core::HRESULT,
20 pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
21 pub EnclosingRegionName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
22 pub EstimatedSizeInBytes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u64) -> ::windows::core::HRESULT,
23 #[cfg(feature = "Foundation")]
24 pub RemoveStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT,
25 #[cfg(not(feature = "Foundation"))]
26 RemoveStatusChanged: usize,
27 #[cfg(feature = "Foundation")]
28 pub StatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT,
29 #[cfg(not(feature = "Foundation"))]
30 StatusChanged: usize,
31 #[cfg(feature = "Foundation")]
32 pub RequestStartDownloadAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
33 #[cfg(not(feature = "Foundation"))]
34 RequestStartDownloadAsync: usize,
35 }
36 #[doc(hidden)]
37 #[repr(transparent)]
38 pub struct IOfflineMapPackageQueryResult(::windows::core::IUnknown);
39 unsafe impl ::windows::core::Interface for IOfflineMapPackageQueryResult {
40 type Vtable = IOfflineMapPackageQueryResult_Vtbl;
41 }
42 impl ::core::clone::Clone for IOfflineMapPackageQueryResult {
43 fn clone(&self) -> Self {
44 Self(self.0.clone())
45 }
46 }
47 unsafe impl ::windows::core::ComInterface for IOfflineMapPackageQueryResult {
48 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x55585411_39e1_4e41_a4e1_5f4872bee199);
49 }
50 #[repr(C)]
51 #[doc(hidden)]
52 pub struct IOfflineMapPackageQueryResult_Vtbl {
53 pub base__: ::windows::core::IInspectable_Vtbl,
54 pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut OfflineMapPackageQueryStatus) -> ::windows::core::HRESULT,
55 #[cfg(feature = "Foundation_Collections")]
56 pub Packages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
57 #[cfg(not(feature = "Foundation_Collections"))]
58 Packages: usize,
59 }
60 #[doc(hidden)]
61 #[repr(transparent)]
62 pub struct IOfflineMapPackageStartDownloadResult(::windows::core::IUnknown);
63 unsafe impl ::windows::core::Interface for IOfflineMapPackageStartDownloadResult {
64 type Vtable = IOfflineMapPackageStartDownloadResult_Vtbl;
65 }
66 impl ::core::clone::Clone for IOfflineMapPackageStartDownloadResult {
67 fn clone(&self) -> Self {
68 Self(self.0.clone())
69 }
70 }
71 unsafe impl ::windows::core::ComInterface for IOfflineMapPackageStartDownloadResult {
72 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd965b918_d4d6_4afe_9378_3ec71ef11c3d);
73 }
74 #[repr(C)]
75 #[doc(hidden)]
76 pub struct IOfflineMapPackageStartDownloadResult_Vtbl {
77 pub base__: ::windows::core::IInspectable_Vtbl,
78 pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut OfflineMapPackageStartDownloadStatus) -> ::windows::core::HRESULT,
79 }
80 #[doc(hidden)]
81 #[repr(transparent)]
82 pub struct IOfflineMapPackageStatics(::windows::core::IUnknown);
83 unsafe impl ::windows::core::Interface for IOfflineMapPackageStatics {
84 type Vtable = IOfflineMapPackageStatics_Vtbl;
85 }
86 impl ::core::clone::Clone for IOfflineMapPackageStatics {
87 fn clone(&self) -> Self {
88 Self(self.0.clone())
89 }
90 }
91 unsafe impl ::windows::core::ComInterface for IOfflineMapPackageStatics {
92 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x185e7922_a831_4ab0_941f_6998fa929285);
93 }
94 #[repr(C)]
95 #[doc(hidden)]
96 pub struct IOfflineMapPackageStatics_Vtbl {
97 pub base__: ::windows::core::IInspectable_Vtbl,
98 #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation"))]
99 pub FindPackagesAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, querypoint: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
100 #[cfg(not(all(feature = "Devices_Geolocation", feature = "Foundation")))]
101 FindPackagesAsync: usize,
102 #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation"))]
103 pub FindPackagesInBoundingBoxAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, queryboundingbox: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
104 #[cfg(not(all(feature = "Devices_Geolocation", feature = "Foundation")))]
105 FindPackagesInBoundingBoxAsync: usize,
106 #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation"))]
107 pub FindPackagesInGeocircleAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, querycircle: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
108 #[cfg(not(all(feature = "Devices_Geolocation", feature = "Foundation")))]
109 FindPackagesInGeocircleAsync: usize,
110 }
111 #[doc = "*Required features: `\"Services_Maps_OfflineMaps\"`*"]
112 #[repr(transparent)]
113 pub struct OfflineMapPackage(::windows::core::IUnknown);
114 impl OfflineMapPackage {
115 pub fn Status(&self) -> ::windows::core::Result<OfflineMapPackageStatus> {
116 let this = self;
117 unsafe {
118 let mut result__ = ::windows::core::zeroed::<OfflineMapPackageStatus>();
119 (::windows::core::Interface::vtable(this).Status)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
120 }
121 }
122 pub fn DisplayName(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
123 let this = self;
124 unsafe {
125 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
126 (::windows::core::Interface::vtable(this).DisplayName)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
127 }
128 }
129 pub fn EnclosingRegionName(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
130 let this = self;
131 unsafe {
132 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
133 (::windows::core::Interface::vtable(this).EnclosingRegionName)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
134 }
135 }
136 pub fn EstimatedSizeInBytes(&self) -> ::windows::core::Result<u64> {
137 let this = self;
138 unsafe {
139 let mut result__ = ::windows::core::zeroed::<u64>();
140 (::windows::core::Interface::vtable(this).EstimatedSizeInBytes)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
141 }
142 }
143 #[doc = "*Required features: `\"Foundation\"`*"]
144 #[cfg(feature = "Foundation")]
145 pub fn RemoveStatusChanged(&self, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::Result<()> {
146 let this = self;
147 unsafe { (::windows::core::Interface::vtable(this).RemoveStatusChanged)(::windows::core::Interface::as_raw(this), token).ok() }
148 }
149 #[doc = "*Required features: `\"Foundation\"`*"]
150 #[cfg(feature = "Foundation")]
151 pub fn StatusChanged(&self, value: &super::super::super::Foundation::TypedEventHandler<OfflineMapPackage, ::windows::core::IInspectable>) -> ::windows::core::Result<super::super::super::Foundation::EventRegistrationToken> {
152 let this = self;
153 unsafe {
154 let mut result__ = ::windows::core::zeroed::<super::super::super::Foundation::EventRegistrationToken>();
155 (::windows::core::Interface::vtable(this).StatusChanged)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(value), &mut result__).from_abi(result__)
156 }
157 }
158 #[doc = "*Required features: `\"Foundation\"`*"]
159 #[cfg(feature = "Foundation")]
160 pub fn RequestStartDownloadAsync(&self) -> ::windows::core::Result<super::super::super::Foundation::IAsyncOperation<OfflineMapPackageStartDownloadResult>> {
161 let this = self;
162 unsafe {
163 let mut result__ = ::windows::core::zeroed::<super::super::super::Foundation::IAsyncOperation<OfflineMapPackageStartDownloadResult>>();
164 (::windows::core::Interface::vtable(this).RequestStartDownloadAsync)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
165 }
166 }
167 #[doc = "*Required features: `\"Devices_Geolocation\"`, `\"Foundation\"`*"]
168 #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation"))]
169 pub fn FindPackagesAsync(querypoint: &super::super::super::Devices::Geolocation::Geopoint) -> ::windows::core::Result<super::super::super::Foundation::IAsyncOperation<OfflineMapPackageQueryResult>> {
170 Self::IOfflineMapPackageStatics(|this| unsafe {
171 let mut result__ = ::windows::core::zeroed::<super::super::super::Foundation::IAsyncOperation<OfflineMapPackageQueryResult>>();
172 (::windows::core::Interface::vtable(this).FindPackagesAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(querypoint), &mut result__).from_abi(result__)
173 })
174 }
175 #[doc = "*Required features: `\"Devices_Geolocation\"`, `\"Foundation\"`*"]
176 #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation"))]
177 pub fn FindPackagesInBoundingBoxAsync(queryboundingbox: &super::super::super::Devices::Geolocation::GeoboundingBox) -> ::windows::core::Result<super::super::super::Foundation::IAsyncOperation<OfflineMapPackageQueryResult>> {
178 Self::IOfflineMapPackageStatics(|this| unsafe {
179 let mut result__ = ::windows::core::zeroed::<super::super::super::Foundation::IAsyncOperation<OfflineMapPackageQueryResult>>();
180 (::windows::core::Interface::vtable(this).FindPackagesInBoundingBoxAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(queryboundingbox), &mut result__).from_abi(result__)
181 })
182 }
183 #[doc = "*Required features: `\"Devices_Geolocation\"`, `\"Foundation\"`*"]
184 #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation"))]
185 pub fn FindPackagesInGeocircleAsync(querycircle: &super::super::super::Devices::Geolocation::Geocircle) -> ::windows::core::Result<super::super::super::Foundation::IAsyncOperation<OfflineMapPackageQueryResult>> {
186 Self::IOfflineMapPackageStatics(|this| unsafe {
187 let mut result__ = ::windows::core::zeroed::<super::super::super::Foundation::IAsyncOperation<OfflineMapPackageQueryResult>>();
188 (::windows::core::Interface::vtable(this).FindPackagesInGeocircleAsync)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(querycircle), &mut result__).from_abi(result__)
189 })
190 }
191 #[doc(hidden)]
192 pub fn IOfflineMapPackageStatics<R, F: FnOnce(&IOfflineMapPackageStatics) -> ::windows::core::Result<R>>(callback: F) -> ::windows::core::Result<R> {
193 static SHARED: ::windows::imp::FactoryCache<OfflineMapPackage, IOfflineMapPackageStatics> = ::windows::imp::FactoryCache::new();
194 SHARED.call(callback)
195 }
196 }
197 impl ::core::cmp::PartialEq for OfflineMapPackage {
198 fn eq(&self, other: &Self) -> bool {
199 self.0 == other.0
200 }
201 }
202 impl ::core::cmp::Eq for OfflineMapPackage {}
203 impl ::core::fmt::Debug for OfflineMapPackage {
204 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
205 f.debug_tuple("OfflineMapPackage").field(&self.0).finish()
206 }
207 }
208 impl ::windows::core::RuntimeType for OfflineMapPackage {
209 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.Services.Maps.OfflineMaps.OfflineMapPackage;{a797673b-a5b5-4144-b525-e68c8862664b})");
210 }
211 impl ::core::clone::Clone for OfflineMapPackage {
212 fn clone(&self) -> Self {
213 Self(self.0.clone())
214 }
215 }
216 unsafe impl ::windows::core::Interface for OfflineMapPackage {
217 type Vtable = IOfflineMapPackage_Vtbl;
218 }
219 unsafe impl ::windows::core::ComInterface for OfflineMapPackage {
220 const IID: ::windows::core::GUID = <IOfflineMapPackage as ::windows::core::ComInterface>::IID;
221 }
222 impl ::windows::core::RuntimeName for OfflineMapPackage {
223 const NAME: &'static str = "Windows.Services.Maps.OfflineMaps.OfflineMapPackage";
224 }
225 ::windows::imp::interface_hierarchy!(OfflineMapPackage, ::windows::core::IUnknown, ::windows::core::IInspectable);
226 unsafe impl ::core::marker::Send for OfflineMapPackage {}
227 unsafe impl ::core::marker::Sync for OfflineMapPackage {}
228 #[doc = "*Required features: `\"Services_Maps_OfflineMaps\"`*"]
229 #[repr(transparent)]
230 pub struct OfflineMapPackageQueryResult(::windows::core::IUnknown);
231 impl OfflineMapPackageQueryResult {
232 pub fn Status(&self) -> ::windows::core::Result<OfflineMapPackageQueryStatus> {
233 let this = self;
234 unsafe {
235 let mut result__ = ::windows::core::zeroed::<OfflineMapPackageQueryStatus>();
236 (::windows::core::Interface::vtable(this).Status)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
237 }
238 }
239 #[doc = "*Required features: `\"Foundation_Collections\"`*"]
240 #[cfg(feature = "Foundation_Collections")]
241 pub fn Packages(&self) -> ::windows::core::Result<super::super::super::Foundation::Collections::IVectorView<OfflineMapPackage>> {
242 let this = self;
243 unsafe {
244 let mut result__ = ::windows::core::zeroed::<super::super::super::Foundation::Collections::IVectorView<OfflineMapPackage>>();
245 (::windows::core::Interface::vtable(this).Packages)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
246 }
247 }
248 }
249 impl ::core::cmp::PartialEq for OfflineMapPackageQueryResult {
250 fn eq(&self, other: &Self) -> bool {
251 self.0 == other.0
252 }
253 }
254 impl ::core::cmp::Eq for OfflineMapPackageQueryResult {}
255 impl ::core::fmt::Debug for OfflineMapPackageQueryResult {
256 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
257 f.debug_tuple("OfflineMapPackageQueryResult").field(&self.0).finish()
258 }
259 }
260 impl ::windows::core::RuntimeType for OfflineMapPackageQueryResult {
261 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.Services.Maps.OfflineMaps.OfflineMapPackageQueryResult;{55585411-39e1-4e41-a4e1-5f4872bee199})");
262 }
263 impl ::core::clone::Clone for OfflineMapPackageQueryResult {
264 fn clone(&self) -> Self {
265 Self(self.0.clone())
266 }
267 }
268 unsafe impl ::windows::core::Interface for OfflineMapPackageQueryResult {
269 type Vtable = IOfflineMapPackageQueryResult_Vtbl;
270 }
271 unsafe impl ::windows::core::ComInterface for OfflineMapPackageQueryResult {
272 const IID: ::windows::core::GUID = <IOfflineMapPackageQueryResult as ::windows::core::ComInterface>::IID;
273 }
274 impl ::windows::core::RuntimeName for OfflineMapPackageQueryResult {
275 const NAME: &'static str = "Windows.Services.Maps.OfflineMaps.OfflineMapPackageQueryResult";
276 }
277 ::windows::imp::interface_hierarchy!(OfflineMapPackageQueryResult, ::windows::core::IUnknown, ::windows::core::IInspectable);
278 unsafe impl ::core::marker::Send for OfflineMapPackageQueryResult {}
279 unsafe impl ::core::marker::Sync for OfflineMapPackageQueryResult {}
280 #[doc = "*Required features: `\"Services_Maps_OfflineMaps\"`*"]
281 #[repr(transparent)]
282 pub struct OfflineMapPackageStartDownloadResult(::windows::core::IUnknown);
283 impl OfflineMapPackageStartDownloadResult {
284 pub fn Status(&self) -> ::windows::core::Result<OfflineMapPackageStartDownloadStatus> {
285 let this = self;
286 unsafe {
287 let mut result__ = ::windows::core::zeroed::<OfflineMapPackageStartDownloadStatus>();
288 (::windows::core::Interface::vtable(this).Status)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
289 }
290 }
291 }
292 impl ::core::cmp::PartialEq for OfflineMapPackageStartDownloadResult {
293 fn eq(&self, other: &Self) -> bool {
294 self.0 == other.0
295 }
296 }
297 impl ::core::cmp::Eq for OfflineMapPackageStartDownloadResult {}
298 impl ::core::fmt::Debug for OfflineMapPackageStartDownloadResult {
299 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
300 f.debug_tuple("OfflineMapPackageStartDownloadResult").field(&self.0).finish()
301 }
302 }
303 impl ::windows::core::RuntimeType for OfflineMapPackageStartDownloadResult {
304 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.Services.Maps.OfflineMaps.OfflineMapPackageStartDownloadResult;{d965b918-d4d6-4afe-9378-3ec71ef11c3d})");
305 }
306 impl ::core::clone::Clone for OfflineMapPackageStartDownloadResult {
307 fn clone(&self) -> Self {
308 Self(self.0.clone())
309 }
310 }
311 unsafe impl ::windows::core::Interface for OfflineMapPackageStartDownloadResult {
312 type Vtable = IOfflineMapPackageStartDownloadResult_Vtbl;
313 }
314 unsafe impl ::windows::core::ComInterface for OfflineMapPackageStartDownloadResult {
315 const IID: ::windows::core::GUID = <IOfflineMapPackageStartDownloadResult as ::windows::core::ComInterface>::IID;
316 }
317 impl ::windows::core::RuntimeName for OfflineMapPackageStartDownloadResult {
318 const NAME: &'static str = "Windows.Services.Maps.OfflineMaps.OfflineMapPackageStartDownloadResult";
319 }
320 ::windows::imp::interface_hierarchy!(OfflineMapPackageStartDownloadResult, ::windows::core::IUnknown, ::windows::core::IInspectable);
321 unsafe impl ::core::marker::Send for OfflineMapPackageStartDownloadResult {}
322 unsafe impl ::core::marker::Sync for OfflineMapPackageStartDownloadResult {}
323 #[doc = "*Required features: `\"Services_Maps_OfflineMaps\"`*"]
324 #[repr(transparent)]
325 #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
326 pub struct OfflineMapPackageQueryStatus(pub i32);
327 impl OfflineMapPackageQueryStatus {
328 pub const Success: Self = Self(0i32);
329 pub const UnknownError: Self = Self(1i32);
330 pub const InvalidCredentials: Self = Self(2i32);
331 pub const NetworkFailure: Self = Self(3i32);
332 }
333 impl ::core::marker::Copy for OfflineMapPackageQueryStatus {}
334 impl ::core::clone::Clone for OfflineMapPackageQueryStatus {
335 fn clone(&self) -> Self {
336 *self
337 }
338 }
339 impl ::core::default::Default for OfflineMapPackageQueryStatus {
340 fn default() -> Self {
341 Self(0)
342 }
343 }
344 impl ::windows::core::TypeKind for OfflineMapPackageQueryStatus {
345 type TypeKind = ::windows::core::CopyType;
346 }
347 impl ::core::fmt::Debug for OfflineMapPackageQueryStatus {
348 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
349 f.debug_tuple("OfflineMapPackageQueryStatus").field(&self.0).finish()
350 }
351 }
352 impl ::windows::core::RuntimeType for OfflineMapPackageQueryStatus {
353 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.Services.Maps.OfflineMaps.OfflineMapPackageQueryStatus;i4)");
354 }
355 #[doc = "*Required features: `\"Services_Maps_OfflineMaps\"`*"]
356 #[repr(transparent)]
357 #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
358 pub struct OfflineMapPackageStartDownloadStatus(pub i32);
359 impl OfflineMapPackageStartDownloadStatus {
360 pub const Success: Self = Self(0i32);
361 pub const UnknownError: Self = Self(1i32);
362 pub const InvalidCredentials: Self = Self(2i32);
363 pub const DeniedWithoutCapability: Self = Self(3i32);
364 }
365 impl ::core::marker::Copy for OfflineMapPackageStartDownloadStatus {}
366 impl ::core::clone::Clone for OfflineMapPackageStartDownloadStatus {
367 fn clone(&self) -> Self {
368 *self
369 }
370 }
371 impl ::core::default::Default for OfflineMapPackageStartDownloadStatus {
372 fn default() -> Self {
373 Self(0)
374 }
375 }
376 impl ::windows::core::TypeKind for OfflineMapPackageStartDownloadStatus {
377 type TypeKind = ::windows::core::CopyType;
378 }
379 impl ::core::fmt::Debug for OfflineMapPackageStartDownloadStatus {
380 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
381 f.debug_tuple("OfflineMapPackageStartDownloadStatus").field(&self.0).finish()
382 }
383 }
384 impl ::windows::core::RuntimeType for OfflineMapPackageStartDownloadStatus {
385 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.Services.Maps.OfflineMaps.OfflineMapPackageStartDownloadStatus;i4)");
386 }
387 #[doc = "*Required features: `\"Services_Maps_OfflineMaps\"`*"]
388 #[repr(transparent)]
389 #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
390 pub struct OfflineMapPackageStatus(pub i32);
391 impl OfflineMapPackageStatus {
392 pub const NotDownloaded: Self = Self(0i32);
393 pub const Downloading: Self = Self(1i32);
394 pub const Downloaded: Self = Self(2i32);
395 pub const Deleting: Self = Self(3i32);
396 }
397 impl ::core::marker::Copy for OfflineMapPackageStatus {}
398 impl ::core::clone::Clone for OfflineMapPackageStatus {
399 fn clone(&self) -> Self {
400 *self
401 }
402 }
403 impl ::core::default::Default for OfflineMapPackageStatus {
404 fn default() -> Self {
405 Self(0)
406 }
407 }
408 impl ::windows::core::TypeKind for OfflineMapPackageStatus {
409 type TypeKind = ::windows::core::CopyType;
410 }
411 impl ::core::fmt::Debug for OfflineMapPackageStatus {
412 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
413 f.debug_tuple("OfflineMapPackageStatus").field(&self.0).finish()
414 }
415 }
416 impl ::windows::core::RuntimeType for OfflineMapPackageStatus {
417 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.Services.Maps.OfflineMaps.OfflineMapPackageStatus;i4)");
418 }
419 #[cfg(feature = "implement")]
420 ::core::include!("impl.rs");