Skip to main content

EventHandler

Type Alias EventHandler 

Source
pub type EventHandler<TEventArgs> = Rc<dyn Fn(Option<&BoxedValue>, &TEventArgs)>;
Expand description

The handler FuncAddEventHandler gives to the subscription function: the sender and the typed event args (EventHandler<TEventArgs>).

Aliased Typeยง

pub struct EventHandler<TEventArgs> { /* private fields */ }