Skip to main content

EventHandler

Type Alias EventHandler 

Source
pub type EventHandler = Rc<dyn Fn(&ChartEvent)>;
Expand description

A handler registered on a chart.

The handler is shared: registering the same closure twice runs it twice, which is what a user expects from two separate registrations.

Aliased Typeยง

pub struct EventHandler { /* private fields */ }