pub fn new<T>(schedule: Schedule, run: T) -> Job<'a>
    where
        T: 'a,
        T: FnMut() -> (),
    {
        Job {
            schedule,
            run: Box::new(run),
            last_tick: None,
            limit_missed_runs: 1,
            job_id: Uuid::new_v4(),
        }
    }
/// Create a new job.
///
/// ```rust,ignore
/// // Run at second 0 of the 15th minute of the 6th, 8th, and 10th hour
/// // of any day in March and June that is a Friday of the year 2017.
/// let s: Schedule = "0 15 6,8,10 * Mar,Jun Fri 2017".into().unwrap();
/// Job::new(s, || println!("I have a complex schedule...") );
/// ```
Create a new job.
```rust,ignore
Run at second 0 of the 15th minute of the 6th, 8th, and 10th hour
of any day in March and June that is a Friday of the year 2017.
Create a new job . ` ` ` rust ignore Run at second 0 of the 15th minute of the 6th 8th and 10th hour of any day in March and June that is a Friday of the year 2017 .
pub fn new<T>(schedule: Schedule, run: T) -> Job<'a>
    where
        T: 'a,
        T: FnMut() -> (),
    {
        Job {
            schedule,
            run: Box::new(run),
            last_tick: None,
            limit_missed_runs: 1,
            job_id: Uuid::new_v4(),
        }
    }
pub fn new < T > ( schedule : Schedule , run : T ) -> Job < ' a > where T : ' a , T : FnMut ( ) -> ( ) , { Job { schedule , run : Box :: new ( run ) , last_tick : None , limit_missed_runs : 1 , job_id : Uuid :: new_v4 ( ) , } }
Create a new job.
Create a new job .
schedule
Schedule
run
T
schedule
Schedule
run
T