notify::poll

Trait ScanEventHandler

Source
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 F
where F: FnMut(ScanEvent) + Send + 'static,