pub trait Middleware<S: Debug + Clone + Default + PartialEq + Eq + 'static> {
    fn pre_reduce(&self, _: &Action, _: &S) { ... }
    fn post_reduce(&self, _: &Action, _: &S) { ... }
}
Expand description

A Middleware allows to handle actions before and after state mutation.

This allows implementing side effects for actions.

Provided methods

Implementors