pub fn register_sink(sink: Arc<dyn Fn(&ErrorEvent) + Send + Sync>) -> SinkGuard
Register a fan-out target for new error events; dropping the guard unregisters it (the FFI ties this to the engine handle’s lifetime).