Skip to main content

install_observer

Function install_observer 

Source
pub fn install_observer<O>(o: O)
where O: Observer,
Expand description

Install the global observer. Called once at process start.

The argument is a constructed observer (typically StandardObserver::builder().build()?); we wrap it in Arc and store it under OBSERVER_GLOBAL.