Skip to main content

StatementHandler

Trait StatementHandler 

Source
pub trait StatementHandler: Send + Sync {
    // Required method
    fn on_statement(
        &self,
        statement: &Statement,
        raw: &[u8],
    ) -> Result<(), String>;
}
Expand description

Receives decoded statements after dedup.

Required Methods§

Source

fn on_statement(&self, statement: &Statement, raw: &[u8]) -> Result<(), String>

Called for each unique statement that passes the dedup filter.

Return Err to signal a handler-level problem; other handlers are still called and the error is logged at warn level.

Implementors§