pub fn battery() -> Result<Option<Battery>>
The system battery, several combined; None when there is none.
None
PermissionDenied where the OS refuses (SELinux on Android, E-90); Unsupported on iOS.
PermissionDenied
Unsupported