3 pub struct IOfflineMapPackage(::windows
::core
::IUnknown
);
4 unsafe impl ::windows
::core
::Interface
for IOfflineMapPackage
{
5 type Vtable
= IOfflineMapPackage_Vtbl
;
7 impl ::core
::clone
::Clone
for IOfflineMapPackage
{
8 fn clone(&self) -> Self {
12 unsafe impl ::windows
::core
::ComInterface
for IOfflineMapPackage
{
13 const IID
: ::windows
::core
::GUID
= ::windows
::core
::GUID
::from_u128(0xa797673b_a5b5_4144_b525_e68c8862664b);
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"))]
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,
38 pub struct IOfflineMapPackageQueryResult(::windows
::core
::IUnknown
);
39 unsafe impl ::windows
::core
::Interface
for IOfflineMapPackageQueryResult
{
40 type Vtable
= IOfflineMapPackageQueryResult_Vtbl
;
42 impl ::core
::clone
::Clone
for IOfflineMapPackageQueryResult
{
43 fn clone(&self) -> Self {
47 unsafe impl ::windows
::core
::ComInterface
for IOfflineMapPackageQueryResult
{
48 const IID
: ::windows
::core
::GUID
= ::windows
::core
::GUID
::from_u128(0x55585411_39e1_4e41_a4e1_5f4872bee199);
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"))]
62 pub struct IOfflineMapPackageStartDownloadResult(::windows
::core
::IUnknown
);
63 unsafe impl ::windows
::core
::Interface
for IOfflineMapPackageStartDownloadResult
{
64 type Vtable
= IOfflineMapPackageStartDownloadResult_Vtbl
;
66 impl ::core
::clone
::Clone
for IOfflineMapPackageStartDownloadResult
{
67 fn clone(&self) -> Self {
71 unsafe impl ::windows
::core
::ComInterface
for IOfflineMapPackageStartDownloadResult
{
72 const IID
: ::windows
::core
::GUID
= ::windows
::core
::GUID
::from_u128(0xd965b918_d4d6_4afe_9378_3ec71ef11c3d);
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
,
82 pub struct IOfflineMapPackageStatics(::windows
::core
::IUnknown
);
83 unsafe impl ::windows
::core
::Interface
for IOfflineMapPackageStatics
{
84 type Vtable
= IOfflineMapPackageStatics_Vtbl
;
86 impl ::core
::clone
::Clone
for IOfflineMapPackageStatics
{
87 fn clone(&self) -> Self {
91 unsafe impl ::windows
::core
::ComInterface
for IOfflineMapPackageStatics
{
92 const IID
: ::windows
::core
::GUID
= ::windows
::core
::GUID
::from_u128(0x185e7922_a831_4ab0_941f_6998fa929285);
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,
111 #[doc = "*Required features: `\"Services_Maps_OfflineMaps\"`*"]
113 pub struct OfflineMapPackage(::windows
::core
::IUnknown
);
114 impl OfflineMapPackage
{
115 pub fn Status(&self) -> ::windows
::core
::Result
<OfflineMapPackageStatus
> {
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__
)
122 pub fn DisplayName(&self) -> ::windows
::core
::Result
<::windows
::core
::HSTRING
> {
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__
)
129 pub fn EnclosingRegionName(&self) -> ::windows
::core
::Result
<::windows
::core
::HSTRING
> {
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__
)
136 pub fn EstimatedSizeInBytes(&self) -> ::windows
::core
::Result
<u64> {
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__
)
143 #[doc = "*Required features: `\"Foundation\"`*"]
144 #[cfg(feature = "Foundation")]
145 pub fn RemoveStatusChanged(&self, token
: super::super::super::Foundation
::EventRegistrationToken
) -> ::windows
::core
::Result
<()> {
147 unsafe { (::windows::core::Interface::vtable(this).RemoveStatusChanged)(::windows::core::Interface::as_raw(this), token).ok() }
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
> {
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__
)
158 #[doc = "*Required features: `\"Foundation\"`*"]
159 #[cfg(feature = "Foundation")]
160 pub fn RequestStartDownloadAsync(&self) -> ::windows
::core
::Result
<super::super::super::Foundation
::IAsyncOperation
<OfflineMapPackageStartDownloadResult
>> {
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__
)
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__
)
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__
)
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__
)
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
)
197 impl ::core
::cmp
::PartialEq
for OfflineMapPackage
{
198 fn eq(&self, other
: &Self) -> bool
{
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()
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})");
211 impl ::core
::clone
::Clone
for OfflineMapPackage
{
212 fn clone(&self) -> Self {
216 unsafe impl ::windows
::core
::Interface
for OfflineMapPackage
{
217 type Vtable
= IOfflineMapPackage_Vtbl
;
219 unsafe impl ::windows
::core
::ComInterface
for OfflineMapPackage
{
220 const IID
: ::windows
::core
::GUID
= <IOfflineMapPackage
as ::windows
::core
::ComInterface
>::IID
;
222 impl ::windows
::core
::RuntimeName
for OfflineMapPackage
{
223 const NAME
: &'
static str = "Windows.Services.Maps.OfflineMaps.OfflineMapPackage";
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\"`*"]
230 pub struct OfflineMapPackageQueryResult(::windows
::core
::IUnknown
);
231 impl OfflineMapPackageQueryResult
{
232 pub fn Status(&self) -> ::windows
::core
::Result
<OfflineMapPackageQueryStatus
> {
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__
)
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
>> {
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__
)
249 impl ::core
::cmp
::PartialEq
for OfflineMapPackageQueryResult
{
250 fn eq(&self, other
: &Self) -> bool
{
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()
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})");
263 impl ::core
::clone
::Clone
for OfflineMapPackageQueryResult
{
264 fn clone(&self) -> Self {
268 unsafe impl ::windows
::core
::Interface
for OfflineMapPackageQueryResult
{
269 type Vtable
= IOfflineMapPackageQueryResult_Vtbl
;
271 unsafe impl ::windows
::core
::ComInterface
for OfflineMapPackageQueryResult
{
272 const IID
: ::windows
::core
::GUID
= <IOfflineMapPackageQueryResult
as ::windows
::core
::ComInterface
>::IID
;
274 impl ::windows
::core
::RuntimeName
for OfflineMapPackageQueryResult
{
275 const NAME
: &'
static str = "Windows.Services.Maps.OfflineMaps.OfflineMapPackageQueryResult";
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\"`*"]
282 pub struct OfflineMapPackageStartDownloadResult(::windows
::core
::IUnknown
);
283 impl OfflineMapPackageStartDownloadResult
{
284 pub fn Status(&self) -> ::windows
::core
::Result
<OfflineMapPackageStartDownloadStatus
> {
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__
)
292 impl ::core
::cmp
::PartialEq
for OfflineMapPackageStartDownloadResult
{
293 fn eq(&self, other
: &Self) -> bool
{
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()
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})");
306 impl ::core
::clone
::Clone
for OfflineMapPackageStartDownloadResult
{
307 fn clone(&self) -> Self {
311 unsafe impl ::windows
::core
::Interface
for OfflineMapPackageStartDownloadResult
{
312 type Vtable
= IOfflineMapPackageStartDownloadResult_Vtbl
;
314 unsafe impl ::windows
::core
::ComInterface
for OfflineMapPackageStartDownloadResult
{
315 const IID
: ::windows
::core
::GUID
= <IOfflineMapPackageStartDownloadResult
as ::windows
::core
::ComInterface
>::IID
;
317 impl ::windows
::core
::RuntimeName
for OfflineMapPackageStartDownloadResult
{
318 const NAME
: &'
static str = "Windows.Services.Maps.OfflineMaps.OfflineMapPackageStartDownloadResult";
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\"`*"]
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);
333 impl ::core
::marker
::Copy
for OfflineMapPackageQueryStatus {}
334 impl ::core
::clone
::Clone
for OfflineMapPackageQueryStatus
{
335 fn clone(&self) -> Self {
339 impl ::core
::default::Default
for OfflineMapPackageQueryStatus
{
340 fn default() -> Self {
344 impl ::windows
::core
::TypeKind
for OfflineMapPackageQueryStatus
{
345 type TypeKind
= ::windows
::core
::CopyType
;
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()
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)");
355 #[doc = "*Required features: `\"Services_Maps_OfflineMaps\"`*"]
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);
365 impl ::core
::marker
::Copy
for OfflineMapPackageStartDownloadStatus {}
366 impl ::core
::clone
::Clone
for OfflineMapPackageStartDownloadStatus
{
367 fn clone(&self) -> Self {
371 impl ::core
::default::Default
for OfflineMapPackageStartDownloadStatus
{
372 fn default() -> Self {
376 impl ::windows
::core
::TypeKind
for OfflineMapPackageStartDownloadStatus
{
377 type TypeKind
= ::windows
::core
::CopyType
;
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()
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)");
387 #[doc = "*Required features: `\"Services_Maps_OfflineMaps\"`*"]
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);
397 impl ::core
::marker
::Copy
for OfflineMapPackageStatus {}
398 impl ::core
::clone
::Clone
for OfflineMapPackageStatus
{
399 fn clone(&self) -> Self {
403 impl ::core
::default::Default
for OfflineMapPackageStatus
{
404 fn default() -> Self {
408 impl ::windows
::core
::TypeKind
for OfflineMapPackageStatus
{
409 type TypeKind
= ::windows
::core
::CopyType
;
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()
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)");
419 #[cfg(feature = "implement")]
420 ::core
::include
!("impl.rs");