Trait rotor_tools::timer::SimpleTimer [] [src]

pub trait SimpleTimer {
    type Context;
    fn timeout(self, scope: &mut Scope<Self::Context>) -> Self;
}

The timer trait used in the Ticker<Interval<T>>

Associated Types

type Context

Required Methods

fn timeout(self, scope: &mut Scope<Self::Context>) -> Self

Called when time elapsed

Implementors