Crate hdd_standby [] [src]

Library to check the power state of a hdd

This library allows querying the power status of an ata device using the ioctl syscall and is therefore currently only supported on unix systems. Querying a spun down drive will not cause a spinup.

The necessary ATA constants were taken from the ACS-3 draft standard.

Enums

Error

The error type for this crate

PowerState

The power state of an ata device

Functions

get_power_state

Query the power status of the given device