(&mut self, script_id: u64, new_state: ScriptLoadState)
| 152 | } |
| 153 | |
| 154 | pub fn set_state(&mut self, script_id: u64, new_state: ScriptLoadState) { |
| 155 | if let Some(current) = self.get_script_mut(script_id) { |
| 156 | current.state = new_state; |
| 157 | } |
| 158 | } |
| 159 | |
| 160 | pub fn get_script(&self, script_id: u64) -> Option<&ScriptState> { |
| 161 | self.scripts.iter().find(|v| v.script.id == script_id) |
no test coverage detected