/// Processes the new set of system power modes.
///
/// The new power level is determined according to the new system power modes. If the new power
/// level has changed, then the new value is passed to the publisher, where the remote client
/// will see the new value.
Processes the new set of system power modes.
The new power level is determined according to the new system power modes. If the new power
level has changed, then the new value is passed to the publisher, where the remote client
will see the new value.
Processes the new set of system power modes . The new power level is determined according to the new system power modes . If the new power level has changed then the new value is passed to the publisher where the remote client will see the new value .
fn process_system_power_modes_changed(&mut self, system_power_modes: &HashSet<SystemMode>) {
        let new_power_level = self.determine_power_level(system_power_modes);
        if new_power_level != self.power_level {
            self.power_level = new_power_level;
            self.client_state_inspect.power_level.set(new_power_level);
            self.publisher.set(new_power_level);
        }
    }
fn process_system_power_modes_changed ( & mut self , system_power_modes : & HashSet < SystemMode > ) { let new_power_level = self . determine_power_level ( system_power_modes ) ; if new_power_level != self . power_level { self . power_level = new_power_level ; self . client_state_inspect . power_level . set ( new_power_level ) ; self . publisher . set ( new_power_level ) ; } }
Processes the new set of system power modes.
Processes the new set of system power modes .
&mut self
system_power_modes
&HashSet<SystemMode>