call_trace_tls

Trait Trace

Source
pub trait Trace {
    // Required methods
    fn on_pre(&mut self, ctx: &CallContext);
    fn on_post(&mut self, ctx: &CallContext);
}
Expand description

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

Required Methods§

Source

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

Called immediately after entering the function

Source

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

Called immediately before returning from the function

Implementors§