#[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
Source§fn clone(&self) -> ExecutionMode
fn clone(&self) -> ExecutionMode
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 ExecutionMode
Source§impl Debug for ExecutionMode
impl Debug for ExecutionMode
impl Eq for ExecutionMode
Source§impl PartialEq for ExecutionMode
impl PartialEq for ExecutionMode
Source§fn eq(&self, other: &ExecutionMode) -> bool
fn eq(&self, other: &ExecutionMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ExecutionMode
Auto Trait Implementations§
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