pub type EventHandler = Box<dyn Fn(UIEvent) -> Result<UIResponse, String> + Send + Sync>;Expand description
Type alias for event handler functions.
Event handlers are functions that take a UIEvent and return a Result<UIResponse, String>.
They must be thread-safe (Send + Sync) to work with the async runtime.
Aliased Typeยง
pub struct EventHandler(/* private fields */);