MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / new

Method new

crates/openshell-ocsf/src/objects/process.rs:29–36  ·  view source on GitHub ↗
(name: &str, pid: i64)

Source from the content-addressed store, hash-verified

27 /// Create a new process with name and PID.
28 #[must_use]
29 pub fn new(name: &str, pid: i64) -> Self {
30 Self {
31 name: name.to_string(),
32 pid,
33 cmd_line: None,
34 parent_process: None,
35 }
36 }
37
38 /// Set the command line.
39 #[must_use]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected