Trait Tracer

Source
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§

Source

fn parse_start(&mut self)

This method is invoked at the start of event parsing

Source

fn parse_end(&mut self)

This method is invoked at the end of event parsing

Source

fn eval_start(&mut self)

This method is invoked at the start of the evaluation cycle.

Source

fn eval_end(&mut self)

This method is invoked at the end of the evaluation cycle.

Source

fn spawn_start(&mut self, _output: OutputReference)

This method is invoked at the start of the spawn evaluation of stream output

Source

fn spawn_end(&mut self, _output: OutputReference)

This method is invoked at the end of the spawn evaluation of stream output

Source

fn instance_eval_start(&mut self, _output: OutputReference, _instance: &[Value])

This method is invoked at the start of the evaluation of stream output

Source

fn instance_eval_end(&mut self, _output: OutputReference, _instance: &[Value])

This method is invoked at the end of the evaluation of stream output

Source

fn close_start(&mut self, _output: OutputReference, _instance: &[Value])

This method is invoked at the start of the close evaluation of stream output

Source

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.

Implementors§