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

Method add

vmm/src/app.rs:1266–1268  ·  view source on GitHub ↗
(&mut self, vm: VmState)

Source from the content-addressed store, hash-verified

1264
1265impl AppState {
1266 pub fn add(&mut self, vm: VmState) {
1267 self.vms.insert(vm.config.manifest.id.clone(), vm);
1268 }
1269
1270 pub fn get(&self, id: &str) -> Option<&VmState> {
1271 self.vms.get(id)

Callers 5

load_vmMethod · 0.80
load_or_update_vmMethod · 0.80
toggleDetailsFunction · 0.80
_analyze_git_blameMethod · 0.80
newMethod · 0.80

Calls 1

cloneMethod · 0.80

Tested by

no test coverage detected