#[non_exhaustive]pub enum ContainerRuntime {
Docker,
Jail,
Lxc,
SystemdNspawn,
Unknown(String),
}
Expand description
The detected 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 container runtime
Jail
BSD jail
Lxc
Linux Containers
SystemdNspawn
systemd-nspawn
Unknown(String)
The detected container runtime is unknown
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ContainerRuntime
impl Debug for ContainerRuntime
Source§impl Display for ContainerRuntime
impl Display for ContainerRuntime
Source§impl From<&str> for ContainerRuntime
impl From<&str> for ContainerRuntime
Source§impl FromStr for ContainerRuntime
impl FromStr for ContainerRuntime
Source§impl PartialEq for ContainerRuntime
impl PartialEq for ContainerRuntime
impl Eq 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 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