Skip to main content

SearchMonitor

Trait SearchMonitor 

Source
pub trait SearchMonitor {
    // Required methods
    fn cancelled(&self) -> bool;
    fn report(&self, progress: SearchProgress);

    // Provided method
    fn preview(&self, _routes: &[Route]) { ... }
}

Required Methods§

Source

fn cancelled(&self) -> bool

Source

fn report(&self, progress: SearchProgress)

Provided Methods§

Source

fn preview(&self, _routes: &[Route])

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl SearchMonitor for ()

Source§

fn cancelled(&self) -> bool

Source§

fn report(&self, _progress: SearchProgress)

Implementors§