pub enum Runner {
Local,
Container,
}Expand description
How a program runs under a simulated kernel.
Variants§
Local
Host userland under an in-process seccomp filter (local::run).
Needs Linux, but no container runtime and no root.
Container
A container image’s userland under the OCI profile
(container::run). Needs podman or docker.
Implementations§
Source§impl Runner
impl Runner
Sourcepub fn choose(
requested: Option<Runner>,
image: Option<&str>,
) -> Result<Self, String>
pub fn choose( requested: Option<Runner>, image: Option<&str>, ) -> Result<Self, String>
Applies the selection rules: a requested runner wins; otherwise a known
image (from --image or a distribution preset) means the container,
and no image means the local filter. The container needs an image, and
the local runner cannot use one.
Trait Implementations§
impl Copy for Runner
impl Eq for Runner
impl StructuralPartialEq for Runner
Auto Trait Implementations§
impl Freeze for Runner
impl RefUnwindSafe for Runner
impl Send for Runner
impl Sync for Runner
impl Unpin for Runner
impl UnsafeUnpin for Runner
impl UnwindSafe for Runner
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