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

Method as_str

crates/openshell-core/src/config.rs:63–70  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

61impl ComputeDriverKind {
62 #[must_use]
63 pub const fn as_str(self) -> &'static str {
64 match self {
65 Self::Kubernetes => "kubernetes",
66 Self::Vm => "vm",
67 Self::Docker => "docker",
68 Self::Podman => "podman",
69 }
70 }
71}
72
73/// Normalize a configured compute driver name.

Calls

no outgoing calls