Skip to main content

RunObserver

Trait RunObserver 

Source
pub trait RunObserver: Send + Sync {
    // Required method
    fn event(&self, ev: &RunEvent);
}
Expand description

A host-supplied event subscriber. Called on the bus’s OWN thread — a slow implementation delays events (and eventually loses the oldest), never the run.

Required Methods§

Source

fn event(&self, ev: &RunEvent)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§