pub trait BusEventReader<T: BusEvent> {
// Required method
fn read<C: EventBusConfig>(&mut self, config: &C) -> Vec<EventWrapper<T>>;
}Expand description
Common capabilities shared by all bus event readers.
Required Methods§
Sourcefn read<C: EventBusConfig>(&mut self, config: &C) -> Vec<EventWrapper<T>>
fn read<C: EventBusConfig>(&mut self, config: &C) -> Vec<EventWrapper<T>>
Drain the buffered events for the supplied configuration.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.