#[non_exhaustive]pub enum ExecutionMode {
RenderReadOnly,
ConfirmMutation,
ConfirmExternalTool,
DryRunThenConfirm,
CommandMode,
}Expand description
How a command should be executed.
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.
RenderReadOnly
Run immediately and render output without confirmation.
ConfirmMutation
Show a mutation confirmation before execution.
ConfirmExternalTool
Restore the terminal and run a foreground external tool.
DryRunThenConfirm
Run a dry-run first, then ask before the real command.
CommandMode
User-entered command mode.
Trait Implementations§
Source§impl Clone for ExecutionMode
impl Clone for ExecutionMode
impl Copy for ExecutionMode
Source§impl Debug for ExecutionMode
impl Debug for ExecutionMode
impl Eq for ExecutionMode
Source§impl PartialEq for ExecutionMode
impl PartialEq for ExecutionMode
impl StructuralPartialEq for ExecutionMode
Auto Trait Implementations§
impl Forget for ExecutionMode
impl Freeze for ExecutionMode
impl RefUnwindSafe for ExecutionMode
impl Send for ExecutionMode
impl Sync for ExecutionMode
impl Unpin for ExecutionMode
impl UnsafeUnpin for ExecutionMode
impl UnwindSafe for ExecutionMode
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