pub enum ContainerRuntime {
Docker,
Containerd,
CriO,
Podman,
Lxc,
SystemdMachine,
Unknown,
}Expand description
A container runtime recognised from a cgroup path.
Recognition is by naming convention, so this is evidence rather than proof.
Variants§
Docker
docker-<id>.scope or /docker/<id>.
Containerd
cri-containerd-<id>.scope or containerd-<id>.scope.
CriO
crio-<id>.scope.
Podman
libpod-<id>.scope.
Lxc
lxc.payload.<name> or /lxc/<name>.
SystemdMachine
machine-<name>.scope, which is systemd-nspawn or a machinectl VM.
Unknown
A path that looks like a container but matches no known convention.
Implementations§
Trait Implementations§
Source§impl Clone for ContainerRuntime
impl Clone for ContainerRuntime
Source§fn clone(&self) -> ContainerRuntime
fn clone(&self) -> ContainerRuntime
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ContainerRuntime
Source§impl Debug for ContainerRuntime
impl Debug for ContainerRuntime
impl Eq for ContainerRuntime
Source§impl PartialEq for ContainerRuntime
impl PartialEq for ContainerRuntime
impl StructuralPartialEq for ContainerRuntime
Auto Trait Implementations§
impl Freeze for ContainerRuntime
impl RefUnwindSafe for ContainerRuntime
impl Send for ContainerRuntime
impl Sync for ContainerRuntime
impl Unpin for ContainerRuntime
impl UnsafeUnpin for ContainerRuntime
impl UnwindSafe for ContainerRuntime
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more