type BoxedEventCallback = Box<dyn Fn(&State) + Send + 'static>;
struct BoxedEventCallback(/* private fields */);