Enum in_container::ContainerRuntime [−][src]
#[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)
Tuple Fields
0: String
The detected container runtime is unknown
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ContainerRuntime
impl Send for ContainerRuntime
impl Sync for ContainerRuntime
impl Unpin for ContainerRuntime
impl UnwindSafe for ContainerRuntime
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.