PowerTools/backend/src/settings/mod.rs

28 lines
662 B
Rust
Raw Normal View History

mod detect;
2022-11-19 20:21:09 +00:00
pub mod driver;
mod error;
2022-07-30 21:33:31 +01:00
mod general;
mod min_max;
mod traits;
2022-07-30 21:33:31 +01:00
pub mod generic;
2022-11-19 20:21:09 +00:00
pub mod steam_deck;
pub mod unknown;
pub use detect::{auto_detect0, auto_detect_provider, limits_worker::spawn as limits_worker_spawn};
2022-11-19 20:21:09 +00:00
pub use driver::Driver;
2022-08-26 22:00:43 +01:00
pub use general::{SettingVariant, Settings, General};
pub use min_max::MinMax;
pub use error::SettingError;
2022-11-19 20:21:09 +00:00
pub use traits::{OnResume, OnSet, SettingsRange, TGeneral, TGpu, TCpus, TBattery, TCpu};
#[cfg(test)]
mod tests {
#[test]
fn system_defaults_test() {
let settings = super::Settings::system_default("idc".into());
println!("Loaded system settings: {:?}", settings);
}
}