diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:02:58 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:02:58 +0000 |
commit | 698f8c2f01ea549d77d7dc3338a12e04c11057b9 (patch) | |
tree | 173a775858bd501c378080a10dca74132f05bc50 /vendor/windows-sys-0.28.0/src/Windows/Networking/BackgroundTransfer/mod.rs | |
parent | Initial commit. (diff) | |
download | rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.tar.xz rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.zip |
Adding upstream version 1.64.0+dfsg1.upstream/1.64.0+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/windows-sys-0.28.0/src/Windows/Networking/BackgroundTransfer/mod.rs')
-rw-r--r-- | vendor/windows-sys-0.28.0/src/Windows/Networking/BackgroundTransfer/mod.rs | 117 |
1 files changed, 117 insertions, 0 deletions
diff --git a/vendor/windows-sys-0.28.0/src/Windows/Networking/BackgroundTransfer/mod.rs b/vendor/windows-sys-0.28.0/src/Windows/Networking/BackgroundTransfer/mod.rs new file mode 100644 index 000000000..75c841298 --- /dev/null +++ b/vendor/windows-sys-0.28.0/src/Windows/Networking/BackgroundTransfer/mod.rs @@ -0,0 +1,117 @@ +#![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)] +#[link(name = "windows")] +extern "system" {} +#[repr(C)] +pub struct BackgroundDownloadProgress { + pub BytesReceived: u64, + pub TotalBytesToReceive: u64, + pub Status: BackgroundTransferStatus, + pub HasResponseChanged: bool, + pub HasRestarted: bool, +} +impl ::core::marker::Copy for BackgroundDownloadProgress {} +impl ::core::clone::Clone for BackgroundDownloadProgress { + fn clone(&self) -> Self { + *self + } +} +pub type BackgroundDownloader = *mut ::core::ffi::c_void; +#[repr(transparent)] +pub struct BackgroundTransferBehavior(pub i32); +impl BackgroundTransferBehavior { + pub const Parallel: Self = Self(0i32); + pub const Serialized: Self = Self(1i32); +} +impl ::core::marker::Copy for BackgroundTransferBehavior {} +impl ::core::clone::Clone for BackgroundTransferBehavior { + fn clone(&self) -> Self { + *self + } +} +pub type BackgroundTransferCompletionGroup = *mut ::core::ffi::c_void; +pub type BackgroundTransferCompletionGroupTriggerDetails = *mut ::core::ffi::c_void; +pub type BackgroundTransferContentPart = *mut ::core::ffi::c_void; +#[repr(transparent)] +pub struct BackgroundTransferCostPolicy(pub i32); +impl BackgroundTransferCostPolicy { + pub const Default: Self = Self(0i32); + pub const UnrestrictedOnly: Self = Self(1i32); + pub const Always: Self = Self(2i32); +} +impl ::core::marker::Copy for BackgroundTransferCostPolicy {} +impl ::core::clone::Clone for BackgroundTransferCostPolicy { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +pub struct BackgroundTransferFileRange { + pub Offset: u64, + pub Length: u64, +} +impl ::core::marker::Copy for BackgroundTransferFileRange {} +impl ::core::clone::Clone for BackgroundTransferFileRange { + fn clone(&self) -> Self { + *self + } +} +pub type BackgroundTransferGroup = *mut ::core::ffi::c_void; +#[repr(transparent)] +pub struct BackgroundTransferPriority(pub i32); +impl BackgroundTransferPriority { + pub const Default: Self = Self(0i32); + pub const High: Self = Self(1i32); + pub const Low: Self = Self(2i32); +} +impl ::core::marker::Copy for BackgroundTransferPriority {} +impl ::core::clone::Clone for BackgroundTransferPriority { + fn clone(&self) -> Self { + *self + } +} +pub type BackgroundTransferRangesDownloadedEventArgs = *mut ::core::ffi::c_void; +#[repr(transparent)] +pub struct BackgroundTransferStatus(pub i32); +impl BackgroundTransferStatus { + pub const Idle: Self = Self(0i32); + pub const Running: Self = Self(1i32); + pub const PausedByApplication: Self = Self(2i32); + pub const PausedCostedNetwork: Self = Self(3i32); + pub const PausedNoNetwork: Self = Self(4i32); + pub const Completed: Self = Self(5i32); + pub const Canceled: Self = Self(6i32); + pub const Error: Self = Self(7i32); + pub const PausedRecoverableWebErrorStatus: Self = Self(8i32); + pub const PausedSystemPolicy: Self = Self(32i32); +} +impl ::core::marker::Copy for BackgroundTransferStatus {} +impl ::core::clone::Clone for BackgroundTransferStatus { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +pub struct BackgroundUploadProgress { + pub BytesReceived: u64, + pub BytesSent: u64, + pub TotalBytesToReceive: u64, + pub TotalBytesToSend: u64, + pub Status: BackgroundTransferStatus, + pub HasResponseChanged: bool, + pub HasRestarted: bool, +} +impl ::core::marker::Copy for BackgroundUploadProgress {} +impl ::core::clone::Clone for BackgroundUploadProgress { + fn clone(&self) -> Self { + *self + } +} +pub type BackgroundUploader = *mut ::core::ffi::c_void; +pub type DownloadOperation = *mut ::core::ffi::c_void; +pub type IBackgroundTransferBase = *mut ::core::ffi::c_void; +pub type IBackgroundTransferContentPartFactory = *mut ::core::ffi::c_void; +pub type IBackgroundTransferOperation = *mut ::core::ffi::c_void; +pub type IBackgroundTransferOperationPriority = *mut ::core::ffi::c_void; +pub type ResponseInformation = *mut ::core::ffi::c_void; +pub type UnconstrainedTransferRequestResult = *mut ::core::ffi::c_void; +pub type UploadOperation = *mut ::core::ffi::c_void; |