Skip to main content

battery

Function battery 

Source
pub fn battery() -> Result<Option<Battery>>
Expand description

The system battery, several combined; None when there is none.

ยงErrors

PermissionDenied where the OS refuses (SELinux on Android, E-90); Unsupported on iOS.