[][src]Trait call_trace::Trace

pub trait Trace {
    fn on_pre(&mut self, ctx: &CallContext);
fn on_post(&mut self, ctx: &CallContext); }

Tracing interface invoked by #[trace] and #[trace_with]

Required methods

fn on_pre(&mut self, ctx: &CallContext)

Called immediately after entering the function

fn on_post(&mut self, ctx: &CallContext)

Called immediately before returning from the function

Loading content...

Implementors

Loading content...