hdd_standby 0.1.0

Libray to check the power state of a hdd
Documentation

hdd_standby

Documentation

Libray to check the power state of a hdd using ioctls. Currently only supported on unix.

Example

extern crate hdd_standby;

fn main() {
    let status = hdd_standby::get_power_state("/dev/sda");
    println!("{:?}", status.unwrap_or(PowerState::Unknown));
}

Licence

This library is licenced under the terms of the MIT licence.