pub trait ActionComputation<AR, A> {
// Required method
fn compute_new_actions(&self, event: &AR) -> Vec<A>;
}Expand description
Formalizes the Action Computation algorithm for the saga to handle events/action_results, and produce new commands/actions.
Required Methods§
Sourcefn compute_new_actions(&self, event: &AR) -> Vec<A>
fn compute_new_actions(&self, event: &AR) -> Vec<A>
Computes new commands/actions based on the event/action_result.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".