Crates.io | hdd_standby |
lib.rs | hdd_standby |
version | 0.1.0 |
source | src |
created_at | 2016-05-08 16:10:09.931263 |
updated_at | 2016-05-08 16:10:09.931263 |
description | Libray to check the power state of a hdd |
homepage | |
repository | https://github.com/klemens/hdd_standby-rs |
max_upload_size | |
id | 5007 |
size | 5,288 |
Libray to check the power state of a hdd using ioctls. Currently only supported on unix.
extern crate hdd_standby;
fn main() {
let status = hdd_standby::get_power_state("/dev/sda");
println!("{:?}", status.unwrap_or(PowerState::Unknown));
}
This library is licenced under the terms of the MIT licence.