pub enum ContainerEngine {
Docker,
Podman,
}
Expand description
Represents the container engine being used.
Variants§
Implementations§
Source§impl ContainerEngine
impl ContainerEngine
Sourcepub fn detect() -> Result<ContainerEngine, SrtoolLibError>
pub fn detect() -> Result<ContainerEngine, SrtoolLibError>
Check whether you have Podman and/or Docker installed. The default will be Podman if both are present.
Trait Implementations§
Source§impl Clone for ContainerEngine
impl Clone for ContainerEngine
Source§fn clone(&self) -> ContainerEngine
fn clone(&self) -> ContainerEngine
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 Display for ContainerEngine
impl Display for ContainerEngine
Source§impl PartialEq for ContainerEngine
impl PartialEq for ContainerEngine
Source§impl TryFrom<&str> for ContainerEngine
impl TryFrom<&str> for ContainerEngine
impl Copy for ContainerEngine
impl StructuralPartialEq for ContainerEngine
Auto Trait Implementations§
impl Freeze for ContainerEngine
impl RefUnwindSafe for ContainerEngine
impl Send for ContainerEngine
impl Sync for ContainerEngine
impl Unpin for ContainerEngine
impl UnwindSafe for ContainerEngine
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