WaiterTime

Trait WaiterTime 

Source
pub trait WaiterTime {
    // Required methods
    fn timeout(&mut self) -> bool;
    fn restart(&mut self);
}

Required Methods§

Source

fn timeout(&mut self) -> bool

Check if the time limit expires. This function may sleeps for a while, depends on the implementation.

Source

fn restart(&mut self)

Reset the timeout condition.

Implementors§

Source§

impl<'a> WaiterTime for CounterInstance<'a>

Source§

impl<'a, T, I, N> WaiterTime for TickWaiterTime<'a, T, I, N>
where N: Num, T: TickInstant, I: Interval,