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

Method as_str

crates/openshell-driver-podman/src/config.rs:37–44  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

35 /// Return the policy string expected by the Podman libpod API.
36 #[must_use]
37 pub fn as_str(&self) -> &'static str {
38 match self {
39 Self::Always => "always",
40 Self::Missing => "missing",
41 Self::Never => "never",
42 Self::Newer => "newer",
43 }
44 }
45}
46
47impl std::fmt::Display for ImagePullPolicy {

Calls

no outgoing calls