Skip to main content

is_on_battery_power_from_statuses

Function is_on_battery_power_from_statuses 

Source
fn is_on_battery_power_from_statuses(
    statuses: &[(Option<String>, Option<bool>, Option<String>)],
) -> bool
Expand description

Determine if running on battery based on parsed power supply types and online statuses.