Skip to main content

IngestionCallback

Trait IngestionCallback 

Source
pub trait IngestionCallback: Send + Sync {
    // Provided methods
    fn on_progress(&mut self, _stage: &str, _message: &str) { ... }
    fn on_file(&mut self, _path: &Path, _content: &str) { ... }
    fn on_complete(&mut self, _files: usize, _bytes: usize) { ... }
    fn on_error(&mut self, _error: &str) { ... }
}

Provided Methods§

Source

fn on_progress(&mut self, _stage: &str, _message: &str)

Source

fn on_file(&mut self, _path: &Path, _content: &str)

Source

fn on_complete(&mut self, _files: usize, _bytes: usize)

Source

fn on_error(&mut self, _error: &str)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§