Struct rotor_tools::timer::Interval [] [src]

pub struct Interval<M: SimpleTimer>(_, _);

Interval state machine

It's the state machine used for ticker that wakes up with fixed intervals

Trait Implementations

impl<T: SimpleTimer> Timer for Interval<T>
[src]

type Context = T::Context

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

Called when time elapsed

fn next_wakeup_time(&self, scheduled: Time, scope: &mut Scope<Self::Context>) -> Time

Calculates the next wakeup time Read more