pub trait Scheduler {
// Required methods
fn is_ready(&self) -> bool;
fn time_till_next_job(&self) -> Option<Duration>;
fn tick(&mut self);
}
Expand description
An interface for scheduling sync jobs.
Required Methods§
Sourcefn time_till_next_job(&self) -> Option<Duration>
fn time_till_next_job(&self) -> Option<Duration>
Returns the duration till the next job is supposed to run.