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

pub use self::errors::Error;
pub use self::errors::Result;

Modules

Errors handling

Partially re-exported uom quantities and measurement units used in the library public interface.

Structs

An iterator that yields batteries available in system.

Battery instant information representation.

Manager for batteries available in system.

Enums

Possible battery state values.

Possible battery technologies.