pub trait EventBus: EventEmitter {
// Provided method
fn collected_events<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Vec<Event>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
}Expand description
Event sink that supports emission and optional collection.
Every EventBus is an EventEmitter. Embedders that want to inspect
emitted events override collected_events; production hosts inherit the
no-op default.
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".