Crate starship_battery[−][src]
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 handling
Structs
Battery instant information representation.
Manager for batteries available in system.
Enums
Possible battery state values.
Possible battery technologies.