pub type Listener<T> = Box<dyn Fn(Event<'_, T>)>;
Function called when an event is emitted by the tree synchronously.
pub struct Listener<T>(/* private fields */);