pub trait TraceHandler: Send + 'static {
// Required method
fn trace_activity(
&self,
trace: &Trace,
event: Activity,
event_time: Duration,
);
}Expand description
Inference event handler trait.
Required Methods§
Sourcefn trace_activity(&self, trace: &Trace, event: Activity, event_time: Duration)
fn trace_activity(&self, trace: &Trace, event: Activity, event_time: Duration)
This function is invoked each time the event accures.
trace: Trace object that was reported.
Note that child traces of constructed one also are reported with this fn.
Check Trace::new_with_handle for more info.
event: activity that has occurred.
event_time: time when event occured.