]> git.proxmox.com Git - rustc.git/blame - vendor/windows-sys/src/Windows/System/Update/mod.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / vendor / windows-sys / src / Windows / System / Update / mod.rs
CommitLineData
04454e1e 1#[doc = "*Required features: `\"System_Update\"`*"]
5e7ed085
FG
2#[repr(transparent)]
3pub struct SystemUpdateAttentionRequiredReason(pub i32);
4impl SystemUpdateAttentionRequiredReason {
5 pub const None: Self = Self(0i32);
6 pub const NetworkRequired: Self = Self(1i32);
7 pub const InsufficientDiskSpace: Self = Self(2i32);
8 pub const InsufficientBattery: Self = Self(3i32);
9 pub const UpdateBlocked: Self = Self(4i32);
10}
11impl ::core::marker::Copy for SystemUpdateAttentionRequiredReason {}
12impl ::core::clone::Clone for SystemUpdateAttentionRequiredReason {
13 fn clone(&self) -> Self {
14 *self
15 }
16}
17pub type SystemUpdateItem = *mut ::core::ffi::c_void;
04454e1e 18#[doc = "*Required features: `\"System_Update\"`*"]
5e7ed085
FG
19#[repr(transparent)]
20pub struct SystemUpdateItemState(pub i32);
21impl SystemUpdateItemState {
22 pub const NotStarted: Self = Self(0i32);
23 pub const Initializing: Self = Self(1i32);
24 pub const Preparing: Self = Self(2i32);
25 pub const Calculating: Self = Self(3i32);
26 pub const Downloading: Self = Self(4i32);
27 pub const Installing: Self = Self(5i32);
28 pub const Completed: Self = Self(6i32);
29 pub const RebootRequired: Self = Self(7i32);
30 pub const Error: Self = Self(8i32);
31}
32impl ::core::marker::Copy for SystemUpdateItemState {}
33impl ::core::clone::Clone for SystemUpdateItemState {
34 fn clone(&self) -> Self {
35 *self
36 }
37}
38pub type SystemUpdateLastErrorInfo = *mut ::core::ffi::c_void;
04454e1e 39#[doc = "*Required features: `\"System_Update\"`*"]
5e7ed085
FG
40#[repr(transparent)]
41pub struct SystemUpdateManagerState(pub i32);
42impl SystemUpdateManagerState {
43 pub const Idle: Self = Self(0i32);
44 pub const Detecting: Self = Self(1i32);
45 pub const ReadyToDownload: Self = Self(2i32);
46 pub const Downloading: Self = Self(3i32);
47 pub const ReadyToInstall: Self = Self(4i32);
48 pub const Installing: Self = Self(5i32);
49 pub const RebootRequired: Self = Self(6i32);
50 pub const ReadyToFinalize: Self = Self(7i32);
51 pub const Finalizing: Self = Self(8i32);
52 pub const Completed: Self = Self(9i32);
53 pub const AttentionRequired: Self = Self(10i32);
54 pub const Error: Self = Self(11i32);
55}
56impl ::core::marker::Copy for SystemUpdateManagerState {}
57impl ::core::clone::Clone for SystemUpdateManagerState {
58 fn clone(&self) -> Self {
59 *self
60 }
61}
04454e1e 62#[doc = "*Required features: `\"System_Update\"`*"]
5e7ed085
FG
63#[repr(transparent)]
64pub struct SystemUpdateStartInstallAction(pub i32);
65impl SystemUpdateStartInstallAction {
66 pub const UpToReboot: Self = Self(0i32);
67 pub const AllowReboot: Self = Self(1i32);
68}
69impl ::core::marker::Copy for SystemUpdateStartInstallAction {}
70impl ::core::clone::Clone for SystemUpdateStartInstallAction {
71 fn clone(&self) -> Self {
72 *self
73 }
74}