PowerTools/powertools-rs/src/settings/mod.rs

26 lines
501 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;
pub use general::{SettingVariant, Settings};
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);
}
}