mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-16 03:06:47 -04:00
Realign enums that had UnsupportedFeature to start at 0
This commit is contained in:
parent
c37bd22db0
commit
35e520712d
5 changed files with 24 additions and 24 deletions
|
@ -26,8 +26,8 @@ pub enum HardwareVariant {
|
|||
#[derive(PartialEq, Debug, Copy, Clone)]
|
||||
#[repr(u32)]
|
||||
pub enum HardwareCurrentlySupported {
|
||||
Unsupported = 1,
|
||||
Supported = 2,
|
||||
Unsupported = 0,
|
||||
Supported = 1,
|
||||
}
|
||||
|
||||
impl FromStr for HardwareVariant {
|
||||
|
|
|
@ -36,8 +36,8 @@ enum PrepareFactoryReset {
|
|||
#[derive(PartialEq, Debug, Copy, Clone)]
|
||||
#[repr(u32)]
|
||||
enum FanControl {
|
||||
BIOS = 1,
|
||||
OS = 2,
|
||||
BIOS = 0,
|
||||
OS = 1,
|
||||
}
|
||||
|
||||
impl TryFrom<u32> for FanControl {
|
||||
|
|
10
src/power.rs
10
src/power.rs
|
@ -22,11 +22,11 @@ const GPU_CLOCKS_PATH: &str = "/sys/class/drm/card0/device/pp_od_clk_voltage";
|
|||
#[derive(PartialEq, Debug, Copy, Clone)]
|
||||
#[repr(u32)]
|
||||
pub enum GPUPerformanceLevel {
|
||||
Auto = 1,
|
||||
Low = 2,
|
||||
High = 3,
|
||||
Manual = 4,
|
||||
ProfilePeak = 5,
|
||||
Auto = 0,
|
||||
Low = 1,
|
||||
High = 2,
|
||||
Manual = 3,
|
||||
ProfilePeak = 4,
|
||||
}
|
||||
|
||||
impl TryFrom<u32> for GPUPerformanceLevel {
|
||||
|
|
12
src/wifi.rs
12
src/wifi.rs
|
@ -35,22 +35,22 @@ const WIFI_BACKEND_PATH: &str = "/etc/NetworkManager/conf.d/wifi_backend.conf";
|
|||
#[derive(PartialEq, Debug, Copy, Clone)]
|
||||
#[repr(u32)]
|
||||
pub enum WifiDebugMode {
|
||||
Off = 1,
|
||||
On = 2,
|
||||
Off = 0,
|
||||
On = 1,
|
||||
}
|
||||
|
||||
#[derive(PartialEq, Debug, Copy, Clone)]
|
||||
#[repr(u32)]
|
||||
pub enum WifiPowerManagement {
|
||||
Disabled = 1,
|
||||
Enabled = 2,
|
||||
Disabled = 0,
|
||||
Enabled = 1,
|
||||
}
|
||||
|
||||
#[derive(PartialEq, Debug, Copy, Clone)]
|
||||
#[repr(u32)]
|
||||
pub enum WifiBackend {
|
||||
IWD = 1,
|
||||
WPASupplicant = 2,
|
||||
IWD = 0,
|
||||
WPASupplicant = 1,
|
||||
}
|
||||
|
||||
impl TryFrom<u32> for WifiDebugMode {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue