Skip to main content

Watch

Trait Watch 

Source
pub trait Watch {
    // Required method
    fn out_of_time(&self) -> bool;
}
Expand description

Whether the search has run out of time.

There is no clock here: this crate builds without an operating system, so wall time is something the caller watches and this asks about. The work bound below is the one that always applies, and this one narrows it where the caller can measure.

Required Methods§

Source

fn out_of_time(&self) -> bool

Whether the time the caller allowed has passed.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Watch for ()

No clock, so no deadline: the work bound is what stops the search.

Implementors§