pub trait InvocationListener {
    // Required methods
    fn on_enter(&mut self, context: InvocationContext<'_>);
    fn on_leave(&mut self, context: InvocationContext<'_>);
}
Available on crate feature invocation-listener only.
Expand description

Represents a pair of listeners attached to a function.

Required Methods§

source

fn on_enter(&mut self, context: InvocationContext<'_>)

Called when the attached function is entered.

source

fn on_leave(&mut self, context: InvocationContext<'_>)

Called before the attached function is exited.

Implementors§