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

Method process_label

crates/openshell-ocsf/src/enums/activity.rs:126–136  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

124 /// Returns a human-readable label for Process Activity context.
125 #[must_use]
126 pub fn process_label(self) -> &'static str {
127 match self {
128 Self::Unknown => "Unknown",
129 Self::Open => "Launch",
130 Self::Close => "Terminate",
131 Self::Reset => "Open",
132 Self::Fail => "Inject",
133 Self::Refuse => "Set User ID",
134 _ => self.network_label(),
135 }
136 }
137
138 #[must_use]
139 pub fn as_u8(self) -> u8 {

Callers 1

buildMethod · 0.80

Calls 1

network_labelMethod · 0.80

Tested by

no test coverage detected