pub trait RunListener: Send + Sync {
// Required method
fn on_event(&self, event: RunEvent);
}Expand description
Receives the typed events of one run. Implemented in the host language.
Called on a background thread, in order; marshal to the UI thread yourself. Exceptions thrown here are swallowed so they cannot break the run.
Required Methods§
Trait Implementations§
Source§impl<T> FfiConverterArc<T> for dyn RunListener
impl<T> FfiConverterArc<T> for dyn RunListener
Source§impl<T> LiftRef<T> for dyn RunListener
impl<T> LiftRef<T> for dyn RunListener
type LiftType = Arc<dyn RunListener>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".