Skip to main content

Instrumentation

Trait Instrumentation 

Source
pub trait Instrumentation:
    Send
    + Sync
    + 'static {
    // Required method
    fn on_event(&self, event: &Event<'_>);
}
Expand description

A driver consumer’s hook into every operation Sentinel performs.

Events are passed by borrow — the implementation MUST NOT retain the Event past the call. Clone data inside the handler if needed.

Required Methods§

Source

fn on_event(&self, event: &Event<'_>)

Implementors§