[][src]Trait rubot::RunCondition

pub trait RunCondition {
    fn step(&mut self) -> bool;
fn depth(&mut self, depth: u32) -> bool; }

A condition which indicates if Bot::select should keep on running. It is recommended to use Duration for nearly all use cases.

A list of all already implemented RunConditions can be found here.

Required methods

fn step(&mut self) -> bool

Called at each search step, instantly stops all calculations by returning false.

fn depth(&mut self, depth: u32) -> bool

Called after every finished search depth, instantly stops all calculations by returning false.

Loading content...

Implementations on Foreign Types

impl RunCondition for Instant[src]

Returns true while the Instant is still in the future

Loading content...

Implementors

impl RunCondition for Depth[src]

impl RunCondition for ToCompletion[src]

Loading content...