MCPcopy Create free account
hub / github.com/Botloader/botloader / set_state

Method set_state

components/vm/src/lib.rs:154–158  ·  view source on GitHub ↗
(&mut self, script_id: u64, new_state: ScriptLoadState)

Source from the content-addressed store, hash-verified

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)

Callers 1

run_scriptMethod · 0.80

Calls 1

get_script_mutMethod · 0.80

Tested by

no test coverage detected