pub type Handler = Arc<dyn Fn() + Send + Sync>;Expand description
A nullary event handler (e.g. Button::on_press). Handlers travel through a
hole wrapped as this type — concrete (so it round-trips through Box<dyn Any>), and callable. Arg-taking handlers (Fn(T)) are a future extension.
Aliased Type§
pub struct Handler { /* private fields */ }