Skip to main content

set_bus_tap

Function set_bus_tap 

Source
pub fn set_bus_tap(tap: Rc<dyn BusTap>)
Expand description

Registers tap as the thread-local bus tap, replacing any previously installed tap.

The tap fires before each publish, send, and correlation response fanout. Callers are responsible for clearing the tap on shutdown via clear_bus_tap so a stale adapter does not outlive the writer it captures into.