PowerTools/backend/src/settings/mod.rs

26 lines
510 B
Rust
Raw Normal View History

mod battery;
2022-07-30 21:33:31 +01:00
mod cpu;
mod error;
2022-07-30 21:33:31 +01:00
mod general;
mod gpu;
mod min_max;
mod traits;
2022-07-30 21:33:31 +01:00
pub use battery::Battery;
2022-07-30 21:33:31 +01:00
pub use cpu::Cpu;
2022-08-26 22:00:43 +01:00
pub use general::{SettingVariant, Settings, General};
2022-07-30 21:33:31 +01:00
pub use gpu::Gpu;
pub use min_max::MinMax;
pub use error::SettingError;
pub use traits::{OnResume, OnSet, SettingsRange};
#[cfg(test)]
mod tests {
#[test]
fn system_defaults_test() {
let settings = super::Settings::system_default("idc".into());
println!("Loaded system settings: {:?}", settings);
}
}