set_global_sink

Function set_global_sink 

Source
pub fn set_global_sink(sink: Box<dyn EventSink + Send + Sync>) -> bool
Expand 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.