]>
Commit | Line | Data |
---|---|---|
5e7ed085 | 1 | #[repr(C)] |
04454e1e | 2 | #[doc = "*Required features: `\"Networking_BackgroundTransfer\"`*"] |
5e7ed085 FG |
3 | pub struct BackgroundDownloadProgress { |
4 | pub BytesReceived: u64, | |
5 | pub TotalBytesToReceive: u64, | |
6 | pub Status: BackgroundTransferStatus, | |
7 | pub HasResponseChanged: bool, | |
8 | pub HasRestarted: bool, | |
9 | } | |
10 | impl ::core::marker::Copy for BackgroundDownloadProgress {} | |
11 | impl ::core::clone::Clone for BackgroundDownloadProgress { | |
12 | fn clone(&self) -> Self { | |
13 | *self | |
14 | } | |
15 | } | |
16 | pub type BackgroundDownloader = *mut ::core::ffi::c_void; | |
04454e1e | 17 | #[doc = "*Required features: `\"Networking_BackgroundTransfer\"`*"] |
5e7ed085 FG |
18 | #[repr(transparent)] |
19 | pub struct BackgroundTransferBehavior(pub i32); | |
20 | impl BackgroundTransferBehavior { | |
21 | pub const Parallel: Self = Self(0i32); | |
22 | pub const Serialized: Self = Self(1i32); | |
23 | } | |
24 | impl ::core::marker::Copy for BackgroundTransferBehavior {} | |
25 | impl ::core::clone::Clone for BackgroundTransferBehavior { | |
26 | fn clone(&self) -> Self { | |
27 | *self | |
28 | } | |
29 | } | |
30 | pub type BackgroundTransferCompletionGroup = *mut ::core::ffi::c_void; | |
31 | pub type BackgroundTransferCompletionGroupTriggerDetails = *mut ::core::ffi::c_void; | |
32 | pub type BackgroundTransferContentPart = *mut ::core::ffi::c_void; | |
04454e1e | 33 | #[doc = "*Required features: `\"Networking_BackgroundTransfer\"`*"] |
5e7ed085 FG |
34 | #[repr(transparent)] |
35 | pub struct BackgroundTransferCostPolicy(pub i32); | |
36 | impl BackgroundTransferCostPolicy { | |
37 | pub const Default: Self = Self(0i32); | |
38 | pub const UnrestrictedOnly: Self = Self(1i32); | |
39 | pub const Always: Self = Self(2i32); | |
40 | } | |
41 | impl ::core::marker::Copy for BackgroundTransferCostPolicy {} | |
42 | impl ::core::clone::Clone for BackgroundTransferCostPolicy { | |
43 | fn clone(&self) -> Self { | |
44 | *self | |
45 | } | |
46 | } | |
47 | #[repr(C)] | |
04454e1e | 48 | #[doc = "*Required features: `\"Networking_BackgroundTransfer\"`*"] |
5e7ed085 FG |
49 | pub struct BackgroundTransferFileRange { |
50 | pub Offset: u64, | |
51 | pub Length: u64, | |
52 | } | |
53 | impl ::core::marker::Copy for BackgroundTransferFileRange {} | |
54 | impl ::core::clone::Clone for BackgroundTransferFileRange { | |
55 | fn clone(&self) -> Self { | |
56 | *self | |
57 | } | |
58 | } | |
59 | pub type BackgroundTransferGroup = *mut ::core::ffi::c_void; | |
04454e1e | 60 | #[doc = "*Required features: `\"Networking_BackgroundTransfer\"`*"] |
5e7ed085 FG |
61 | #[repr(transparent)] |
62 | pub struct BackgroundTransferPriority(pub i32); | |
63 | impl BackgroundTransferPriority { | |
64 | pub const Default: Self = Self(0i32); | |
65 | pub const High: Self = Self(1i32); | |
66 | pub const Low: Self = Self(2i32); | |
67 | } | |
68 | impl ::core::marker::Copy for BackgroundTransferPriority {} | |
69 | impl ::core::clone::Clone for BackgroundTransferPriority { | |
70 | fn clone(&self) -> Self { | |
71 | *self | |
72 | } | |
73 | } | |
74 | pub type BackgroundTransferRangesDownloadedEventArgs = *mut ::core::ffi::c_void; | |
04454e1e | 75 | #[doc = "*Required features: `\"Networking_BackgroundTransfer\"`*"] |
5e7ed085 FG |
76 | #[repr(transparent)] |
77 | pub struct BackgroundTransferStatus(pub i32); | |
78 | impl BackgroundTransferStatus { | |
79 | pub const Idle: Self = Self(0i32); | |
80 | pub const Running: Self = Self(1i32); | |
81 | pub const PausedByApplication: Self = Self(2i32); | |
82 | pub const PausedCostedNetwork: Self = Self(3i32); | |
83 | pub const PausedNoNetwork: Self = Self(4i32); | |
84 | pub const Completed: Self = Self(5i32); | |
85 | pub const Canceled: Self = Self(6i32); | |
86 | pub const Error: Self = Self(7i32); | |
87 | pub const PausedRecoverableWebErrorStatus: Self = Self(8i32); | |
88 | pub const PausedSystemPolicy: Self = Self(32i32); | |
89 | } | |
90 | impl ::core::marker::Copy for BackgroundTransferStatus {} | |
91 | impl ::core::clone::Clone for BackgroundTransferStatus { | |
92 | fn clone(&self) -> Self { | |
93 | *self | |
94 | } | |
95 | } | |
96 | #[repr(C)] | |
04454e1e | 97 | #[doc = "*Required features: `\"Networking_BackgroundTransfer\"`*"] |
5e7ed085 FG |
98 | pub struct BackgroundUploadProgress { |
99 | pub BytesReceived: u64, | |
100 | pub BytesSent: u64, | |
101 | pub TotalBytesToReceive: u64, | |
102 | pub TotalBytesToSend: u64, | |
103 | pub Status: BackgroundTransferStatus, | |
104 | pub HasResponseChanged: bool, | |
105 | pub HasRestarted: bool, | |
106 | } | |
107 | impl ::core::marker::Copy for BackgroundUploadProgress {} | |
108 | impl ::core::clone::Clone for BackgroundUploadProgress { | |
109 | fn clone(&self) -> Self { | |
110 | *self | |
111 | } | |
112 | } | |
113 | pub type BackgroundUploader = *mut ::core::ffi::c_void; | |
114 | pub type DownloadOperation = *mut ::core::ffi::c_void; | |
115 | pub type IBackgroundTransferBase = *mut ::core::ffi::c_void; | |
116 | pub type IBackgroundTransferContentPartFactory = *mut ::core::ffi::c_void; | |
117 | pub type IBackgroundTransferOperation = *mut ::core::ffi::c_void; | |
118 | pub type IBackgroundTransferOperationPriority = *mut ::core::ffi::c_void; | |
119 | pub type ResponseInformation = *mut ::core::ffi::c_void; | |
120 | pub type UnconstrainedTransferRequestResult = *mut ::core::ffi::c_void; | |
121 | pub type UploadOperation = *mut ::core::ffi::c_void; |