Skip to main content

current_observer

Function current_observer 

Source
pub fn current_observer() -> Option<Arc<dyn RunObserver>>
Expand description

The current execution’s observer, if a scoped context set one. None outside a scope OR when the scoped context has no observer — the caller falls back to the process-global GLOBAL_OBSERVER (A1).