/// Creates a new `ClientStates` instance based on the provided `ThermalConfig`.
///
/// The underlying map of the new `ClientStates` instance is created to contain a `ClientState`
/// entry for each client type present in the provided `ThermalConfig`.
Creates a new `ClientStates` instance based on the provided `ThermalConfig`.
Creates a new ` ClientStates ` instance based on the provided ` ThermalConfig ` .
fn new(thermal_config: ThermalConfig, inspect_parent: &inspect::Node) -> Self {
        let client_states =
            HashMap::from_iter(thermal_config.into_iter().map(|(client_type, client_config)| {
                let client_state = ClientState::new(
                    client_config,
                    new_state_broker(),
                    ClientStateInspect::new(inspect_parent.create_child(&client_type)),
                );
                (client_type, client_state)
            }));
        Self(RefCell::new(client_states))
    }
fn new ( thermal_config : ThermalConfig , inspect_parent : & inspect :: Node ) -> Self { let client_states = HashMap :: from_iter ( thermal_config . into_iter ( ) . map ( | ( client_type , client_config ) | { let client_state = ClientState :: new ( client_config , new_state_broker ( ) , ClientStateInspect :: new ( inspect_parent . create_child ( & client_type ) ) , ) ; ( client_type , client_state ) } ) ) ; Self ( RefCell :: new ( client_states ) ) }
Creates a new `ClientStates` instance based on the provided `ThermalConfig`.
Creates a new ` ClientStates ` instance based on the provided ` ThermalConfig ` .
thermal_config
ThermalConfig
inspect_parent
&inspect::Node