Function gstore::store::middleware [−][src]
pub fn middleware<F, A, S>(implementation: F) -> Middleware<A, S> where
F: Fn(&Store<A, S>, Box<dyn Fn(&Store<A, S>, A)>, A) + 'static,
A: Clone + Eq + 'static,
S: LifecycleState + Clone + Eq + Default + 'static,
Creates a Middleware based on the given closure.