[][src]Trait delay::Waiter

pub trait Waiter: WaiterClone + Send {
    fn wait(&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>

Called at each cycle of the waiting cycle.

Loading content...

Provided methods

fn start(&mut self)

Called when we start the waiting cycle.

Loading content...

Implementors

impl Waiter for Delay[src]

Loading content...