pub fn send_scenarios_to(&self, sender_name: &UnitName) {
        let mut messages = vec![ManagerStatusMessage::Scenarios(self.scenarios.borrow().keys().map(|x| x.clone()).collect())];
        for (scenario_id, scenario) in self.scenarios.borrow().iter() {
            messages.push(ManagerStatusMessage::Describe(scenario_id.clone(), FieldType::Name, scenario.borrow().name().clone()));
            messages.push(ManagerStatusMessage::Describe(scenario_id.clone(), FieldType::Description, scenario.borrow().description().clone()));
        }
        self.send_messages_to(sender_name, messages);
    }
/// Send all available scenarios to the specified endpoint.

Send all available scenarios to the specified endpoint.
Send all available scenarios to the specified endpoint .
pub fn send_scenarios_to(&self, sender_name: &UnitName) {
        let mut messages = vec![ManagerStatusMessage::Scenarios(self.scenarios.borrow().keys().map(|x| x.clone()).collect())];
        for (scenario_id, scenario) in self.scenarios.borrow().iter() {
            messages.push(ManagerStatusMessage::Describe(scenario_id.clone(), FieldType::Name, scenario.borrow().name().clone()));
            messages.push(ManagerStatusMessage::Describe(scenario_id.clone(), FieldType::Description, scenario.borrow().description().clone()));
        }
        self.send_messages_to(sender_name, messages);
    }
pub fn send_scenarios_to ( & self , sender_name : & UnitName ) { let mut messages = vec ! [ ManagerStatusMessage Scenarios ( self scenarios borrow ( ) keys ( ) map ( x x clone ( ) ) collect ( ) ) ] ; for ( scenario_id , scenario ) in self . scenarios . borrow ( ) . iter ( ) { messages . push ( ManagerStatusMessage :: Describe ( scenario_id . clone ( ) , FieldType :: Name , scenario . borrow ( ) . name ( ) . clone ( ) ) ) ; messages . push ( ManagerStatusMessage :: Describe ( scenario_id . clone ( ) , FieldType :: Description , scenario . borrow ( ) . description ( ) . clone ( ) ) ) ; } self . send_messages_to ( sender_name , messages ) ; }
Send all available scenarios to the specified endpoint.
Send all available scenarios to the specified endpoint .
&self
sender_name
&UnitName
&self
sender_name
&UnitName