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
ueventfile to a single battery