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

Method list

supervisor/src/supervisor.rs:101–106  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

99 }
100
101 pub fn list(&self) -> Vec<ProcessInfo> {
102 self.processes
103 .iter()
104 .map(|pair| pair.value().info())
105 .collect::<Vec<_>>()
106 }
107
108 pub fn info(&self, id: &str) -> Option<ProcessInfo> {
109 self.processes.get(id).map(|process| process.info())

Callers 1

listFunction · 0.45

Calls 1

infoMethod · 0.45

Tested by

no test coverage detected