Expand description
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 SI measurement units.
§Supported platforms
- Linux 2.6.39+
- MacOS 10.10+
- Windows 7+
- FreeBSD
- DragonFlyBSD
§Examples
For a quick example see the Manager type documentation
or simple.rs
file in the examples/
folder.
battop crate is using this library as a knowledge source, so check it out too for a real-life example.
Re-exports§
Modules§
- errors
- Errors handling
- units
- Partially re-exported uom quantities and measurement units used in the library public interface.
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.