[−][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+
- FreeBSD
- DragonFlyBSD
Examples
For a quick example see Manager type or simple.rs file in the examples/ folder.
For a real-live example see battery-cli crate.
Structs
| Batteries | An iterator that yields batteries available in system. |
| Battery | Battery instant information representation. |
| Manager | Manager for batteries available in system. |
Enums
| State | Possible battery state values. |
| Technology | Possible battery technologies. |