Skip to main content

BatchManager

Trait BatchManager 

Source
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;
}

Required Methods§

Source

fn add_event(&mut self, event_type: &str, body: Value)

Source

fn send(&mut self) -> Result<(), Box<dyn Error + Send + Sync>>

Source

fn is_empty(&self) -> bool

Implementors§