pub trait Tracer:
Default
+ Clone
+ Debug
+ Send
+ 'static {
// Provided methods
fn parse_start(&mut self) { ... }
fn parse_end(&mut self) { ... }
fn eval_start(&mut self) { ... }
fn eval_end(&mut self) { ... }
fn spawn_start(&mut self, _output: OutputReference) { ... }
fn spawn_end(&mut self, _output: OutputReference) { ... }
fn instance_eval_start(
&mut self,
_output: OutputReference,
_instance: &[Value],
) { ... }
fn instance_eval_end(
&mut self,
_output: OutputReference,
_instance: &[Value],
) { ... }
fn close_start(&mut self, _output: OutputReference, _instance: &[Value]) { ... }
fn close_end(&mut self, _output: OutputReference, _instance: &[Value]) { ... }
}Expand description
Provides the functionality to collect additional tracing data during evaluation. The ‘start’ methods are guaranteed to be called before the ‘end’ method, while either both or none of them are called.
Provided Methods§
Sourcefn parse_start(&mut self)
fn parse_start(&mut self)
This method is invoked at the start of event parsing
Sourcefn eval_start(&mut self)
fn eval_start(&mut self)
This method is invoked at the start of the evaluation cycle.
Sourcefn spawn_start(&mut self, _output: OutputReference)
fn spawn_start(&mut self, _output: OutputReference)
This method is invoked at the start of the spawn evaluation of stream output
Sourcefn spawn_end(&mut self, _output: OutputReference)
fn spawn_end(&mut self, _output: OutputReference)
This method is invoked at the end of the spawn evaluation of stream output
Sourcefn instance_eval_start(&mut self, _output: OutputReference, _instance: &[Value])
fn instance_eval_start(&mut self, _output: OutputReference, _instance: &[Value])
This method is invoked at the start of the evaluation of stream output
Sourcefn instance_eval_end(&mut self, _output: OutputReference, _instance: &[Value])
fn instance_eval_end(&mut self, _output: OutputReference, _instance: &[Value])
This method is invoked at the end of the evaluation of stream output
Sourcefn close_start(&mut self, _output: OutputReference, _instance: &[Value])
fn close_start(&mut self, _output: OutputReference, _instance: &[Value])
This method is invoked at the start of the close evaluation of stream output
Sourcefn close_end(&mut self, _output: OutputReference, _instance: &[Value])
fn close_end(&mut self, _output: OutputReference, _instance: &[Value])
This method is invoked at the end of the close evaluation of stream output
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.