pub struct Runtime {
pub kind: RuntimeKind,
pub program: PathBuf,
}Expand description
The container CLI.
Fields§
§kind: RuntimeKind§program: PathBufImplementations§
Source§impl Runtime
impl Runtime
Sourcepub fn detect(pref: Option<&str>) -> Option<Self>
pub fn detect(pref: Option<&str>) -> Option<Self>
pref (“docker”, “podman”; RUNTIME_ENV wins over it) or, by default, Podman
if it’s installed (rootless: a container escape is only the user), else Docker.
Not on Windows yet (workspace paths can’t be mounted at the same path).
pub fn name(&self) -> &'static str
Trait Implementations§
impl Eq for Runtime
impl StructuralPartialEq for Runtime
Auto Trait Implementations§
impl Forget for Runtime
impl Freeze for Runtime
impl RefUnwindSafe for Runtime
impl Send for Runtime
impl Sync for Runtime
impl Unpin for Runtime
impl UnsafeUnpin for Runtime
impl UnwindSafe for Runtime
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