pub trait ScanEventHandler: Send + 'static {
// Required method
fn handle_event(&mut self, event: Result<PathBuf, Error>);
}Expand description
Handler trait for receivers of ScanEvent.
Very much the same as EventHandler, but including the Result.
See the full example for more information.
Required Methods§
Sourcefn handle_event(&mut self, event: Result<PathBuf, Error>)
fn handle_event(&mut self, event: Result<PathBuf, Error>)
Handles an event.