use bevy_event_bus::BusEvent;
use bevy_event_bus::config::EventBusConfig;
use bevy_event_bus::resources::EventWrapper;
#[cfg(feature = "kafka")]
pub mod kafka;
#[cfg(feature = "kafka")]
pub use kafka::{KafkaEventReader, KafkaReaderError};
#[cfg(feature = "redis")]
pub mod redis;
#[cfg(feature = "redis")]
pub use redis::{RedisEventReader, RedisReaderError};
pub trait BusEventReader<T: BusEvent> {
fn read<C: EventBusConfig>(&mut self, config: &C) -> Vec<EventWrapper<T>>;
}