Trait delay::Waiter[][src]

pub trait Waiter: WaiterClone + Send {
    fn wait(&self) -> Result<(), WaiterError>;

    fn restart(&mut self) -> Result<(), WaiterError> { ... }
fn start(&mut self) { ... } }

A waiter trait, that can be used for executing a delay. Waiters need to be multi-threaded and cloneable. A waiter should not be reused twice.

Required methods

fn wait(&self) -> Result<(), WaiterError>[src]

Called at each cycle of the waiting cycle. Call after starting the waiter otherwise returns an error.

Loading content...

Provided methods

fn restart(&mut self) -> Result<(), WaiterError>[src]

Restart the wait timer. Call after starting the waiter otherwise returns an error.

fn start(&mut self)[src]

Called when we start the waiting cycle.

Loading content...

Implementors

impl Waiter for Delay[src]

Loading content...