Skip to main content

on_ac

Function on_ac 

Source
pub fn on_ac() -> Result<Option<bool>>
Expand description

Whether the machine runs on mains power; None when it cannot be told, which is the answer on a desktop with no power information.

ยงErrors

As battery.