pub fn every(&mut self, ival: Interval) -> &mut SyncJob<Tz, Tp> {
        let job = SyncJob::<Tz, Tp>::new(ival, self.tz.clone());
        self.jobs.push(job);
        let last_index = self.jobs.len() - 1;
        &mut self.jobs[last_index]
    }
/// Add a new job to the scheduler to be run on the given interval
/// ```rust
/// # use clokwerk::*;
/// # use clokwerk::Interval::*;
/// let mut scheduler = Scheduler::new();
/// scheduler.every(10.minutes()).plus(30.seconds()).run(|| println!("Periodic task"));
/// scheduler.every(1.day()).at("3:20 pm").run(|| println!("Daily task"));
/// scheduler.every(Wednesday).at("14:20:17").run(|| println!("Weekly task"));
/// scheduler.every(Weekday).run(|| println!("Every weekday at midnight"));
/// ```
Add a new job to the scheduler to be run on the given interval
```rust
Add a new job to the scheduler to be run on the given interval ` ` ` rust
pub fn every(&mut self, ival: Interval) -> &mut SyncJob<Tz, Tp> {
        let job = SyncJob::<Tz, Tp>::new(ival, self.tz.clone());
        self.jobs.push(job);
        let last_index = self.jobs.len() - 1;
        &mut self.jobs[last_index]
    }
pub fn every ( & mut self , ival : Interval ) -> & mut SyncJob < Tz , Tp > { let job = SyncJob :: < Tz , Tp > :: new ( ival , self . tz . clone ( ) ) ; self . jobs . push ( job ) ; let last_index = self . jobs . len ( ) - 1 ; & mut self . jobs [ last_index ] }
Add a new job to the scheduler to be run on the given interval
```rust
Add a new job to the scheduler to be run on the given interval ` ` ` rust
&mut self
ival
Interval
use clokwerk::*;
None
use clokwerk::interval::*;
let mut scheduler = Scheduler::new();
scheduler.every(10.minutes()).plus(30.seconds()).run(|| println!("Periodic task"));
scheduler.every(1.day()).at("3:20 pm").run(|| println!("Daily task"));
scheduler.every(Wednesday).at("14:20:17").run(|| println!("Weekly task"));
scheduler.every(Weekday).run(|| println!("Every weekday at midnight"));
```
let mut scheduler = Scheduler :: new () ; scheduler . every ( 10 . minutes () ) . plus ( 30 . seconds () ) . run ( || println! ( " Periodic task " )) ; scheduler . every ( 1 . day () ) . at ( " 3 : 20 pm " ) . run ( || println! ( " Daily task " )) ; scheduler . every ( Wednesday ) . at ( " 14 : 20 : 17 " ) . run ( || println! ( " Weekly task " )) ; scheduler . every ( Weekday ) . run ( || println! ( " Every weekday at midnight " )) ; ` ` `