pub fn callback_layer<F>(callback: F) -> CallbackLayerwhere F: Fn(&Event<'_>) + Send + Sync + 'static,
Returns a simple callback layer that will call the provided callback on each relevant event.