pub enum ExecutionAction {
Start,
StepStarted {
step_id: StepId,
parent_step_id: Option<StepId>,
step_type: StepType,
name: String,
source: Option<StepSource>,
},
StepCompleted {
step_id: StepId,
output: Option<String>,
duration_ms: u64,
},
StepFailed {
step_id: StepId,
error: ExecutionError,
},
Pause {
reason: String,
},
Resume,
Wait {
reason: WaitReason,
},
InputReceived,
Complete {
output: Option<String>,
},
Fail {
error: ExecutionError,
},
Cancel {
reason: String,
},
}Expand description
Execution event - all possible events that can change execution state
Actions are the inputs to the reducer. They describe what happened, and the reducer determines how the state should change.
Variants§
Start
Start the execution
StepStarted
A step started
Fields
§
source: Option<StepSource>Source of the step (how it was created)
StepCompleted
A step completed successfully
StepFailed
A step failed with a structured error (feat-02)
Pause
Execution paused
Resume
Execution resumed
Wait
Waiting for external input
Fields
§
reason: WaitReasonInputReceived
External input received
Complete
Execution completed
Fail
Execution failed with a structured error (feat-02)
Fields
§
error: ExecutionErrorCancel
Execution cancelled
Trait Implementations§
Source§impl Clone for ExecutionAction
impl Clone for ExecutionAction
Source§fn clone(&self) -> ExecutionAction
fn clone(&self) -> ExecutionAction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ExecutionAction
impl RefUnwindSafe for ExecutionAction
impl Send for ExecutionAction
impl Sync for ExecutionAction
impl Unpin for ExecutionAction
impl UnsafeUnpin for ExecutionAction
impl UnwindSafe for ExecutionAction
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