[−][src]Trait kompact::Timer
Required methods
fn schedule_once<F>(&mut self, timeout: Duration, action: F) -> ScheduledTimer where
F: FnOnce(&mut C, Uuid) + Send + 'static,
F: FnOnce(&mut C, Uuid) + Send + 'static,
fn schedule_periodic<F>(
&mut self,
delay: Duration,
period: Duration,
action: F
) -> ScheduledTimer where
F: Fn(&mut C, Uuid) + Send + 'static,
&mut self,
delay: Duration,
period: Duration,
action: F
) -> ScheduledTimer where
F: Fn(&mut C, Uuid) + Send + 'static,
fn cancel_timer(&mut self, handle: ScheduledTimer)
Implementors
impl<CD> Timer<CD> for CD where
CD: ComponentDefinition + 'static,
[src]
CD: ComponentDefinition + 'static,
fn schedule_once<F>(&mut self, timeout: Duration, action: F) -> ScheduledTimer where
F: FnOnce(&mut CD, Uuid) + Send + 'static,
[src]
F: FnOnce(&mut CD, Uuid) + Send + 'static,
fn schedule_periodic<F>(
&mut self,
delay: Duration,
period: Duration,
action: F
) -> ScheduledTimer where
F: Fn(&mut CD, Uuid) + Send + 'static,
[src]
&mut self,
delay: Duration,
period: Duration,
action: F
) -> ScheduledTimer where
F: Fn(&mut CD, Uuid) + Send + 'static,