Skip to main content

EngineObserver

Trait EngineObserver 

Source
pub trait EngineObserver: Send + Sync {
    // Required method
    fn on_event(&self, event: EngineEvent);
}
Expand description

Trait for receiving engine progress events.

Implementations must be Send + Sync since events may be emitted from worker threads. The engine holds a shared reference to the observer and calls on_event synchronously on the thread that produced the event.

§Example usage

Required Methods§

Source

fn on_event(&self, event: EngineEvent)

Implementors§