hdd_standby

Crates.iohdd_standby
lib.rshdd_standby
version0.1.0
sourcesrc
created_at2016-05-08 16:10:09.931263
updated_at2016-05-08 16:10:09.931263
descriptionLibray to check the power state of a hdd
homepage
repositoryhttps://github.com/klemens/hdd_standby-rs
max_upload_size
id5007
size5,288
Klemens Schölhorn (klemens)

documentation

https://klemens.github.io/hdd_standby-rs/hdd_standby/

README

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.

Commit count: 9

cargo fmt