pub type EventHandler = Arc<dyn Fn(Arc<SimplePvStore>, String) -> Pin<Box<dyn Future<Output = ()> + Send>> + Send + Sync>;Expand description
A deferred event handler.
Receives the store and the event name. Returns a boxed future because
SimplePvStore::set_value is async — a plain Fn could not touch the
store at all.
Aliased Type§
pub struct EventHandler { /* private fields */ }