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

Method stop_vm

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

Source from the content-addressed store, hash-verified

282 }
283
284 pub async fn stop_vm(&self, id: &str) -> Result<()> {
285 self.set_started(id, false)?;
286 self.cleanup_port_forward(id).await;
287 self.supervisor.stop(id).await?;
288 Ok(())
289 }
290
291 pub async fn remove_vm(&self, id: &str) -> Result<()> {
292 {

Callers

nothing calls this directly

Calls 3

cleanup_port_forwardMethod · 0.80
set_startedMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected