(driver_kind: Option<crate::ComputeDriverKind>)
| 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)] |
nothing calls this directly
no outgoing calls
no test coverage detected