pub enum ContainerDriver {
Docker,
Podman,
Nerdctl,
Compose,
Kubectl,
}Expand description
The five container exec drivers.
A driver is never named directly. It is inferred from which
--container-<driver>-* flag family (or matching session field family) the
caller used, so an option a driver cannot express has no spelling at all
rather than a runtime rejection.
Variants§
Implementations§
Source§impl ContainerDriver
impl ContainerDriver
pub fn as_str(self) -> &'static str
Sourcepub fn default_runtime(self) -> &'static str
pub fn default_runtime(self) -> &'static str
The command a driver execs through when the caller sets no runtime.
Sourcepub fn target_flag(self) -> &'static str
pub fn target_flag(self) -> &'static str
The flag that names this driver’s exec target.
Sourcepub fn flag_family(self) -> &'static str
pub fn flag_family(self) -> &'static str
How to spell this driver’s whole flag family in a message.
Trait Implementations§
Source§impl Clone for ContainerDriver
impl Clone for ContainerDriver
Source§fn clone(&self) -> ContainerDriver
fn clone(&self) -> ContainerDriver
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ContainerDriver
Source§impl Debug for ContainerDriver
impl Debug for ContainerDriver
impl Eq for ContainerDriver
Source§impl PartialEq for ContainerDriver
impl PartialEq for ContainerDriver
impl StructuralPartialEq for ContainerDriver
Auto Trait Implementations§
impl Freeze for ContainerDriver
impl RefUnwindSafe for ContainerDriver
impl Send for ContainerDriver
impl Sync for ContainerDriver
impl Unpin for ContainerDriver
impl UnsafeUnpin for ContainerDriver
impl UnwindSafe for ContainerDriver
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.