]>
Commit | Line | Data |
---|---|---|
04454e1e | 1 | #[doc = "*Required features: `\"System_Update\"`*"] |
5e7ed085 FG |
2 | #[repr(transparent)] |
3 | pub struct SystemUpdateAttentionRequiredReason(pub i32); | |
4 | impl 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 | } | |
11 | impl ::core::marker::Copy for SystemUpdateAttentionRequiredReason {} | |
12 | impl ::core::clone::Clone for SystemUpdateAttentionRequiredReason { | |
13 | fn clone(&self) -> Self { | |
14 | *self | |
15 | } | |
16 | } | |
17 | pub type SystemUpdateItem = *mut ::core::ffi::c_void; | |
04454e1e | 18 | #[doc = "*Required features: `\"System_Update\"`*"] |
5e7ed085 FG |
19 | #[repr(transparent)] |
20 | pub struct SystemUpdateItemState(pub i32); | |
21 | impl 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 | } | |
32 | impl ::core::marker::Copy for SystemUpdateItemState {} | |
33 | impl ::core::clone::Clone for SystemUpdateItemState { | |
34 | fn clone(&self) -> Self { | |
35 | *self | |
36 | } | |
37 | } | |
38 | pub type SystemUpdateLastErrorInfo = *mut ::core::ffi::c_void; | |
04454e1e | 39 | #[doc = "*Required features: `\"System_Update\"`*"] |
5e7ed085 FG |
40 | #[repr(transparent)] |
41 | pub struct SystemUpdateManagerState(pub i32); | |
42 | impl 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 | } | |
56 | impl ::core::marker::Copy for SystemUpdateManagerState {} | |
57 | impl ::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)] |
64 | pub struct SystemUpdateStartInstallAction(pub i32); | |
65 | impl SystemUpdateStartInstallAction { | |
66 | pub const UpToReboot: Self = Self(0i32); | |
67 | pub const AllowReboot: Self = Self(1i32); | |
68 | } | |
69 | impl ::core::marker::Copy for SystemUpdateStartInstallAction {} | |
70 | impl ::core::clone::Clone for SystemUpdateStartInstallAction { | |
71 | fn clone(&self) -> Self { | |
72 | *self | |
73 | } | |
74 | } |