pub trait WaiterTime { // Required methods fn timeout(&mut self) -> bool; fn restart(&mut self); }
Check if the time limit expires. This function may sleeps for a while, depends on the implementation.
Reset the timeout condition.