#[non_exhaustive]pub enum Container {
Docker,
Podman,
Containerd,
Lxc,
SystemdNspawn,
OpenVz,
Other,
}Expand description
A container runtime.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Docker
Docker.
Podman
Podman.
Containerd
containerd or CRI-O, as Kubernetes runs them.
Lxc
LXC or LXD.
SystemdNspawn
systemd-nspawn.
OpenVz
OpenVZ or Virtuozzo.
Other
A container runtime sys-lib cannot name.
Trait Implementations§
impl Copy for Container
impl Eq for Container
impl StructuralPartialEq for Container
Auto Trait Implementations§
impl Forget for Container
impl Freeze for Container
impl RefUnwindSafe for Container
impl Send for Container
impl Sync for Container
impl Unpin for Container
impl UnsafeUnpin for Container
impl UnwindSafe for Container
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