diff options
Diffstat (limited to 'vendor/windows-sys-0.28.0/src/Windows/System/Power')
-rw-r--r-- | vendor/windows-sys-0.28.0/src/Windows/System/Power/Diagnostics/mod.rs | 3 | ||||
-rw-r--r-- | vendor/windows-sys-0.28.0/src/Windows/System/Power/mod.rs | 45 |
2 files changed, 0 insertions, 48 deletions
diff --git a/vendor/windows-sys-0.28.0/src/Windows/System/Power/Diagnostics/mod.rs b/vendor/windows-sys-0.28.0/src/Windows/System/Power/Diagnostics/mod.rs deleted file mode 100644 index c80aa7b7a..000000000 --- a/vendor/windows-sys-0.28.0/src/Windows/System/Power/Diagnostics/mod.rs +++ /dev/null @@ -1,3 +0,0 @@ -#![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)] -#[link(name = "windows")] -extern "system" {} diff --git a/vendor/windows-sys-0.28.0/src/Windows/System/Power/mod.rs b/vendor/windows-sys-0.28.0/src/Windows/System/Power/mod.rs deleted file mode 100644 index 742932e0d..000000000 --- a/vendor/windows-sys-0.28.0/src/Windows/System/Power/mod.rs +++ /dev/null @@ -1,45 +0,0 @@ -#![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)] -#[cfg(feature = "System_Power_Diagnostics")] -pub mod Diagnostics; -#[link(name = "windows")] -extern "system" {} -#[repr(transparent)] -pub struct BatteryStatus(pub i32); -impl BatteryStatus { - pub const NotPresent: Self = Self(0i32); - pub const Discharging: Self = Self(1i32); - pub const Idle: Self = Self(2i32); - pub const Charging: Self = Self(3i32); -} -impl ::core::marker::Copy for BatteryStatus {} -impl ::core::clone::Clone for BatteryStatus { - fn clone(&self) -> Self { - *self - } -} -#[repr(transparent)] -pub struct EnergySaverStatus(pub i32); -impl EnergySaverStatus { - pub const Disabled: Self = Self(0i32); - pub const Off: Self = Self(1i32); - pub const On: Self = Self(2i32); -} -impl ::core::marker::Copy for EnergySaverStatus {} -impl ::core::clone::Clone for EnergySaverStatus { - fn clone(&self) -> Self { - *self - } -} -#[repr(transparent)] -pub struct PowerSupplyStatus(pub i32); -impl PowerSupplyStatus { - pub const NotPresent: Self = Self(0i32); - pub const Inadequate: Self = Self(1i32); - pub const Adequate: Self = Self(2i32); -} -impl ::core::marker::Copy for PowerSupplyStatus {} -impl ::core::clone::Clone for PowerSupplyStatus { - fn clone(&self) -> Self { - *self - } -} |