pub trait BatchManager:
Send
+ Sync
+ 'static {
// Required methods
fn add_event(&mut self, event_type: &str, body: Value);
fn send(&mut self) -> Result<(), Box<dyn Error + Send + Sync>>;
fn is_empty(&self) -> bool;
}pub trait BatchManager:
Send
+ Sync
+ 'static {
// Required methods
fn add_event(&mut self, event_type: &str, body: Value);
fn send(&mut self) -> Result<(), Box<dyn Error + Send + Sync>>;
fn is_empty(&self) -> bool;
}