]> git.proxmox.com Git - rustc.git/blame - vendor/windows-sys/src/Windows/Networking/BackgroundTransfer/mod.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / vendor / windows-sys / src / Windows / Networking / BackgroundTransfer / mod.rs
CommitLineData
5e7ed085 1#[repr(C)]
04454e1e 2#[doc = "*Required features: `\"Networking_BackgroundTransfer\"`*"]
5e7ed085
FG
3pub struct BackgroundDownloadProgress {
4 pub BytesReceived: u64,
5 pub TotalBytesToReceive: u64,
6 pub Status: BackgroundTransferStatus,
7 pub HasResponseChanged: bool,
8 pub HasRestarted: bool,
9}
10impl ::core::marker::Copy for BackgroundDownloadProgress {}
11impl ::core::clone::Clone for BackgroundDownloadProgress {
12 fn clone(&self) -> Self {
13 *self
14 }
15}
16pub type BackgroundDownloader = *mut ::core::ffi::c_void;
04454e1e 17#[doc = "*Required features: `\"Networking_BackgroundTransfer\"`*"]
5e7ed085
FG
18#[repr(transparent)]
19pub struct BackgroundTransferBehavior(pub i32);
20impl BackgroundTransferBehavior {
21 pub const Parallel: Self = Self(0i32);
22 pub const Serialized: Self = Self(1i32);
23}
24impl ::core::marker::Copy for BackgroundTransferBehavior {}
25impl ::core::clone::Clone for BackgroundTransferBehavior {
26 fn clone(&self) -> Self {
27 *self
28 }
29}
30pub type BackgroundTransferCompletionGroup = *mut ::core::ffi::c_void;
31pub type BackgroundTransferCompletionGroupTriggerDetails = *mut ::core::ffi::c_void;
32pub type BackgroundTransferContentPart = *mut ::core::ffi::c_void;
04454e1e 33#[doc = "*Required features: `\"Networking_BackgroundTransfer\"`*"]
5e7ed085
FG
34#[repr(transparent)]
35pub struct BackgroundTransferCostPolicy(pub i32);
36impl BackgroundTransferCostPolicy {
37 pub const Default: Self = Self(0i32);
38 pub const UnrestrictedOnly: Self = Self(1i32);
39 pub const Always: Self = Self(2i32);
40}
41impl ::core::marker::Copy for BackgroundTransferCostPolicy {}
42impl ::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
49pub struct BackgroundTransferFileRange {
50 pub Offset: u64,
51 pub Length: u64,
52}
53impl ::core::marker::Copy for BackgroundTransferFileRange {}
54impl ::core::clone::Clone for BackgroundTransferFileRange {
55 fn clone(&self) -> Self {
56 *self
57 }
58}
59pub type BackgroundTransferGroup = *mut ::core::ffi::c_void;
04454e1e 60#[doc = "*Required features: `\"Networking_BackgroundTransfer\"`*"]
5e7ed085
FG
61#[repr(transparent)]
62pub struct BackgroundTransferPriority(pub i32);
63impl BackgroundTransferPriority {
64 pub const Default: Self = Self(0i32);
65 pub const High: Self = Self(1i32);
66 pub const Low: Self = Self(2i32);
67}
68impl ::core::marker::Copy for BackgroundTransferPriority {}
69impl ::core::clone::Clone for BackgroundTransferPriority {
70 fn clone(&self) -> Self {
71 *self
72 }
73}
74pub type BackgroundTransferRangesDownloadedEventArgs = *mut ::core::ffi::c_void;
04454e1e 75#[doc = "*Required features: `\"Networking_BackgroundTransfer\"`*"]
5e7ed085
FG
76#[repr(transparent)]
77pub struct BackgroundTransferStatus(pub i32);
78impl 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}
90impl ::core::marker::Copy for BackgroundTransferStatus {}
91impl ::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
98pub 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}
107impl ::core::marker::Copy for BackgroundUploadProgress {}
108impl ::core::clone::Clone for BackgroundUploadProgress {
109 fn clone(&self) -> Self {
110 *self
111 }
112}
113pub type BackgroundUploader = *mut ::core::ffi::c_void;
114pub type DownloadOperation = *mut ::core::ffi::c_void;
115pub type IBackgroundTransferBase = *mut ::core::ffi::c_void;
116pub type IBackgroundTransferContentPartFactory = *mut ::core::ffi::c_void;
117pub type IBackgroundTransferOperation = *mut ::core::ffi::c_void;
118pub type IBackgroundTransferOperationPriority = *mut ::core::ffi::c_void;
119pub type ResponseInformation = *mut ::core::ffi::c_void;
120pub type UnconstrainedTransferRequestResult = *mut ::core::ffi::c_void;
121pub type UploadOperation = *mut ::core::ffi::c_void;