pub trait EventListener<E: Debug> {
    fn dispatcher(&mut self, dispatcher: Rc<RefCell<Dispatcher<E>>>) -> &mut Self;
}
Expand description

The EventListener Trait is only a standard way to implement a tui widget, which can listen to events.

Required Methods§

Hand over a Dispatcher to the widget.

Implementors§