Skip to main content

ProgressCallback

Trait ProgressCallback 

Source
pub trait ProgressCallback: Send + Sync {
    // Required method
    fn on_progress(&self, decoded: usize, total: usize);
}
Expand description

Callback invoked by the batch engine during long-running decodes. decoded is the number of events successfully decoded so far; total is the total count in the current batch.

Required Methods§

Source

fn on_progress(&self, decoded: usize, total: usize)

Implementors§

Source§

impl<F: Fn(usize, usize) + Send + Sync> ProgressCallback for F

Blanket impl so closures can be used as progress callbacks.