[−][src]Crate battery
This crate provides cross-platform information about batteries.
Gives access to a system independent battery state, capacity, charge and voltage values
recalculated as necessary to be returned in mW
, mWh
or mV
units.
Supported platforms
- Linux 2.6.39+
- MacOS (10.10+ probably, needs to be confirmed)
- Windows 7+
For a quick example see either get function or main.rs
file in the sources.
Structs
Battery | Battery instant information representation. |
Enums
State | Possible battery state values. |
Technology | Possible battery technologies. |
Functions
get | Returns an iterator with batteries states. |