pub trait Sink {
// Required method
fn record(&self, event: TraceEvent);
}Expand description
Implemented by anything that wants to receive trace events.
Implementations must be cheap when called; emit sites in the engine
are designed for ~one indirect call overhead when a sink is
installed.
Required Methods§
Sourcefn record(&self, event: TraceEvent)
fn record(&self, event: TraceEvent)
Receive a single event. Implementations should not perform I/O or take locks that risk contention with engine work.