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

Method set_started

vmm/src/app/qemu.rs:1030–1034  ·  view source on GitHub ↗
(&self, started: bool)

Source from the content-addressed store, hash-verified

1028 }
1029
1030 pub fn set_started(&self, started: bool) -> Result<()> {
1031 let state_path = self.state_path();
1032 fs::write(state_path, serde_json::to_string(&State { started })?)
1033 .context("Failed to write state")
1034 }
1035
1036 pub fn shared_dir(&self) -> PathBuf {
1037 self.workdir.join("shared")

Callers 2

run_one_shotFunction · 0.45
create_vmMethod · 0.45

Calls 1

state_pathMethod · 0.80

Tested by

no test coverage detected