Skip to main content

register_sink

Function register_sink 

Source
pub fn register_sink(sink: Arc<dyn Fn(&ErrorEvent) + Send + Sync>) -> SinkGuard
Expand description

Register a fan-out target for new error events; dropping the guard unregisters it (the FFI ties this to the engine handle’s lifetime).