pub enum StepResult {
Pass(Event),
Drop {
reason: String,
exit_reason: Option<String>,
},
FanOut(Vec<Event>),
Action {
event: Event,
action: Box<PreparedAction>,
},
}Expand description
The outcome of running one event through one crate::node::StepNode.
Variants§
Pass(Event)
Forward the (possibly derived) event to the next step.
Drop
Stop propagation here. Filters and sink terminals return this.
Fields
FanOut(Vec<Event>)
Forward several events. Only nodes that declare produces_fan_out
may return this; the validator bans fan-out upstream of execute.*.
Action
Persist an external action intent and continue with the supplied event. The step never invokes the provider inline.
Fields
§
action: Box<PreparedAction>The effect to persist as an intent.
Implementations§
Trait Implementations§
Source§impl Clone for StepResult
impl Clone for StepResult
Source§fn clone(&self) -> StepResult
fn clone(&self) -> StepResult
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 moreAuto Trait Implementations§
impl Freeze for StepResult
impl RefUnwindSafe for StepResult
impl Send for StepResult
impl Sync for StepResult
impl Unpin for StepResult
impl UnsafeUnpin for StepResult
impl UnwindSafe for StepResult
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