pub enum ExecutionStep {
Sequential {
command: String,
},
ErrorRecovery {
command: String,
},
Pipe {
command: String,
},
PipeErr {
command: String,
},
ContextAccumulation {
commands: Vec<String>,
},
}Expand description
A step in an execution plan describing how a command should be executed.
Variants§
Sequential
Execute a command sequentially (normal execution, or first in a chain).
ErrorRecovery
Execute a command and on error, skip to the next ErrorRecovery marker.
Pipe
Execute a command with piped input from the previous command.
PipeErr
Execute a command with piped input including stderr from the previous.
ContextAccumulation
Marker to accumulate optional command outputs into a context object.
Trait Implementations§
Source§impl Clone for ExecutionStep
impl Clone for ExecutionStep
Source§fn clone(&self) -> ExecutionStep
fn clone(&self) -> ExecutionStep
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 moreSource§impl Debug for ExecutionStep
impl Debug for ExecutionStep
Source§impl<'de> Deserialize<'de> for ExecutionStep
impl<'de> Deserialize<'de> for ExecutionStep
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ExecutionStep
impl RefUnwindSafe for ExecutionStep
impl Send for ExecutionStep
impl Sync for ExecutionStep
impl Unpin for ExecutionStep
impl UnsafeUnpin for ExecutionStep
impl UnwindSafe for ExecutionStep
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