pub trait PowerProfileMonitorExt: 'static {
    fn is_power_saver_enabled(&self) -> bool;
    fn connect_power_saver_enabled_notify<F: Fn(&Self) + 'static>(
        f: F
    ) -> SignalHandlerId; }
Expand description

Required Methods

Gets whether the system is in “Power Saver” mode.

You are expected to listen to the signal::PowerProfileMonitor::notify::power-saver-enabled signal to know when the profile has changed.


Whether the system is in “Power Saver” mode.

Available on crate feature v2_70 only.