Skip to main content

Module battery

Module battery 

Source
Expand description

Get information about notebook’s battery

§Example

use ferrix_lib::battery::BatInfo;
use ferrix_lib::traits::ToJson;

let bat = BatInfo::new().unwrap();
let bat_json = bat.to_json().unwrap();
dbg!(bat_json);

Structs§

BatInfo
Information about all installed batteries
Battery
Information from the uevent file to a single battery

Enums§

Level
Capacity level
Status
Charging status