pub fn set_trace_callback(
callback: impl Fn(&RegistryEvent) + Send + Sync + 'static,
)Expand description
Sets a tracing callback that will be invoked on every registry interaction.
Pass None (or call clear_trace_callback) to disable tracing.
ยงExample
use singleton_registry::{set_trace_callback, RegistryEvent};
set_trace_callback(|event| println!("[registry-trace] {:?}", event));