#[non_exhaustive]pub enum ShellKind {
Sh,
Bash,
Pwsh,
Cmd,
Custom {
program: String,
args: Vec<String>,
},
}Expand description
Explicit shell kind. The engine uses this tag to select the executable and its flag.
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.
Sh
sh -c <command>.
Bash
bash -c <command>.
Pwsh
pwsh -NoProfile -NonInteractive -Command <command>.
Cmd
cmd /C <command>.
Custom
A user-supplied program with passthrough args (excluding the command itself).
Trait Implementations§
impl Eq for ShellKind
impl StructuralPartialEq for ShellKind
Auto Trait Implementations§
impl Freeze for ShellKind
impl RefUnwindSafe for ShellKind
impl Send for ShellKind
impl Sync for ShellKind
impl Unpin for ShellKind
impl UnsafeUnpin for ShellKind
impl UnwindSafe for ShellKind
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