use state::State; use store::Store; pub trait Middleware where T: State + Clone { fn dispatch(&mut self, store: &mut Store, next: &mut FnMut(T::Action), action: T::Action); }