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

Method lifecycle_label

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

Source from the content-addressed store, hash-verified

97 /// Returns a human-readable label for Application Lifecycle activity context.
98 #[must_use]
99 pub fn lifecycle_label(self) -> &'static str {
100 match self {
101 Self::Unknown => "Unknown",
102 Self::Open => "Install",
103 Self::Close => "Remove",
104 Self::Reset => "Start",
105 Self::Fail => "Stop",
106 Self::Refuse => "Restart",
107 Self::Traffic => "Enable",
108 Self::Listen => "Disable",
109 Self::Trace => "Update",
110 Self::Patch | Self::Other => "Other",
111 }
112 }
113
114 /// Returns a human-readable label for Config State Change activity context.
115 #[must_use]

Callers 1

buildMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected