Struct cronjob::CronJob
[−]
[src]
pub struct CronJob { pub command: Box<Command>, // some fields omitted }
The object to create and execute cronjobs for yout application.
Fields
command: Box<Command>
Methods
impl CronJob
[src]
fn new<C: Command>(
name: &str,
expression: &str,
offset: FixedOffset,
command: C
) -> CronJob
name: &str,
expression: &str,
offset: FixedOffset,
command: C
) -> CronJob
Constructs new CronJob
object.
fn start_job(&mut self)
Starts the cronjob without threading.
fn start_job_threaded(cronjob: CronJob)
Starts the cronjob with threading. Stops when application quits.