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

Method from_raw

crates/openshell-core/src/telemetry.rs:180–188  ·  view source on GitHub ↗
(raw: &str)

Source from the content-addressed store, hash-verified

178
179 #[must_use]
180 pub fn from_raw(raw: &str) -> Self {
181 match raw.trim().to_ascii_lowercase().as_str() {
182 "docker" => Self::Docker,
183 "k8s" | "kubernetes" => Self::Kubernetes,
184 "podman" => Self::Podman,
185 "vm" => Self::Vm,
186 _ => Self::Unknown,
187 }
188 }
189
190 #[must_use]
191 pub const fn from_driver_kind(driver_kind: Option<crate::ComputeDriverKind>) -> Self {

Callers

nothing calls this directly

Calls 1

as_strMethod · 0.45

Tested by

no test coverage detected