pub trait ScanEventHandler: Send + 'static {
    // Required method
    fn handle_event(&mut self, event: ScanEvent);
}
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: ScanEvent)

Handles an event.

Implementations on Foreign Types§

source§

impl ScanEventHandler for ()

source§

fn handle_event(&mut self, _event: ScanEvent)

source§

impl ScanEventHandler for Sender<ScanEvent>

source§

fn handle_event(&mut self, event: ScanEvent)

source§

impl ScanEventHandler for Sender<ScanEvent>

source§

fn handle_event(&mut self, event: ScanEvent)

Implementors§

source§

impl<F> ScanEventHandler for Fwhere F: FnMut(ScanEvent) + Send + 'static,