sensors

Crates.iosensors
lib.rssensors
version0.2.2
sourcesrc
created_at2017-09-07 12:02:23.427818
updated_at2022-01-17 08:43:18.892621
descriptionA Rust-friendly interface to lm-sensors
homepage
repositoryhttps://github.com/nyantec/sensors
max_upload_size
id30901
size14,262
crates (github:nyantec:crates)

documentation

README

sensors

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);
        }
    }
}
Commit count: 37

cargo fmt