Skip to main content

ScanEventHandler

Trait ScanEventHandler 

Source
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§

Source

fn handle_event(&mut self, event: Result<PathBuf, Error>)

Handles an event.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl ScanEventHandler for ()

Source§

fn handle_event(&mut self, _event: Result<PathBuf, Error>)

Source§

impl ScanEventHandler for Sender<Result<PathBuf, Error>>

Source§

fn handle_event(&mut self, event: Result<PathBuf, Error>)

Implementors§

Source§

impl ScanEventHandler for comfy_wgpu::crossbeam::channel::Sender<Result<PathBuf, Error>>

Available on crate feature crossbeam-channel only.
Source§

impl<F> ScanEventHandler for F
where F: FnMut(Result<PathBuf, Error>) + Send + 'static,