SolveEventHandler

Trait SolveEventHandler 

Source
pub trait SolveEventHandler {
    // Provided method
    fn on_solve_event(
        &mut self,
        _event: SolveEvent<'_>,
        _goon: &mut bool,
    ) -> bool { ... }
}

Provided Methods§

Source

fn on_solve_event(&mut self, _event: SolveEvent<'_>, _goon: &mut bool) -> bool

Callback function called during search to notify when the search is finished or a model is ready

Attention: If the search is finished, the model is NULL.

§Arguments
  • event - the solve event
  • goon - can be set to false to stop solving

Returns whether the call was successful

See: Control::solve()

Implementors§