Crates.io | sensors |
lib.rs | sensors |
version | 0.2.2 |
source | src |
created_at | 2017-09-07 12:02:23.427818 |
updated_at | 2022-01-17 08:43:18.892621 |
description | A Rust-friendly interface to lm-sensors |
homepage | |
repository | https://github.com/nyantec/sensors |
max_upload_size | |
id | 30901 |
size | 14,262 |
Example usage:
for chip in Sensors::new() {
let name = chip.get_name().expect("name");
println!("Found sensor: {}", &name);
for feature in chip {
let label = feature.get_label().expect("label");
println!("Found feature: {}", &label);
for subfeature in feature {
let value = subfeature.get_value().expect("value");
println!("Found subfeature {}: {}", subfeature.name(), value);
}
}
}