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

Method from_driver_kind

crates/openshell-core/src/telemetry.rs:191–199  ·  view source on GitHub ↗
(driver_kind: Option<crate::ComputeDriverKind>)

Source from the content-addressed store, hash-verified

189
190 #[must_use]
191 pub const fn from_driver_kind(driver_kind: Option<crate::ComputeDriverKind>) -> Self {
192 match driver_kind {
193 Some(crate::ComputeDriverKind::Docker) => Self::Docker,
194 Some(crate::ComputeDriverKind::Kubernetes) => Self::Kubernetes,
195 Some(crate::ComputeDriverKind::Podman) => Self::Podman,
196 Some(crate::ComputeDriverKind::Vm) => Self::Vm,
197 None => Self::Unknown,
198 }
199 }
200}
201
202#[derive(Debug, Clone, Copy, PartialEq, Eq)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected