pub trait Listener {
    // Required methods
    fn event(&mut self, event: Event);
    fn step_event_filter(&self) -> StepEventFilter;
}
Expand description

Main trait to proxy emitted messages. Used 2 times :

  • Inside the runtime to proxy the events through the host functions
  • Inside the client to forward those events to the client listener.

Required Methods§

source

fn event(&mut self, event: Event)

source

fn step_event_filter(&self) -> StepEventFilter

Allow the runtime to know which data should be discarded and not cloned. WARNING: It is only called once when the runtime tracing is instantiated to avoid performing many ext calls.

Implementors§