Struct periodic::Planner [−][src]
pub struct Planner { /* fields omitted */ }
Schedules callbacks to be called at specified times
Methods
impl Planner
[src]
impl Planner
pub fn new() -> Planner
[src]
pub fn new() -> Planner
pub fn add<T: Iterator<Item = Instant> + Send + Sync + 'static>(
&mut self,
callback: impl Fn() + Send + Sync + 'static,
times: impl IntoInstantIter<IterType = T>
)
[src]
pub fn add<T: Iterator<Item = Instant> + Send + Sync + 'static>(
&mut self,
callback: impl Fn() + Send + Sync + 'static,
times: impl IntoInstantIter<IterType = T>
)
Add a callback to be called at the times specified
pub fn start(&mut self)
[src]
pub fn start(&mut self)
Start running added callbacks