MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / get_mut

Method get_mut

vmm/src/app.rs:1274–1276  ·  view source on GitHub ↗
(&mut self, id: &str)

Source from the content-addressed store, hash-verified

1272 }
1273
1274 pub fn get_mut(&mut self, id: &str) -> Option<&mut VmState> {
1275 self.vms.get_mut(id)
1276 }
1277
1278 pub fn remove(&mut self, id: &str) -> Option<VmState> {
1279 self.vms.remove(id)

Callers 11

load_vmMethod · 0.80
start_vmMethod · 0.80
remove_vmMethod · 0.80
spawn_finish_removeMethod · 0.80
reload_vmsMethod · 0.80
load_or_update_vmMethod · 0.80
new_client_by_idMethod · 0.80
set_admin_port_policyMethod · 0.80
remove_instanceMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected