pub fn set_global_sink(sink: Box<dyn EventSink + Send + Sync>) -> boolExpand description
Register a process-wide EventSink.
Only the first call takes effect (uses OnceLock). Returns true if the
sink was registered, false if one was already set. After registration,
emit_event forwards events to this sink.