Struct cronjob::CronJob
[−]
[src]
pub struct CronJob { /* fields omitted */ }
The object to create and execute cronjobs for yout application.
Methods
impl CronJob
[src]
fn new<C: Command>(name: &str, command: C) -> Self
[src]
Constructs new CronJob
object.
fn seconds(&mut self, seconds: &str) -> &mut Self
[src]
fn minutes(&mut self, minutes: &str) -> &mut Self
[src]
fn hours(&mut self, hours: &str) -> &mut Self
[src]
fn day_of_month(&mut self, day_of_month: &str) -> &mut Self
[src]
fn month(&mut self, month: &str) -> &mut Self
[src]
fn day_of_week(&mut self, day_of_week: &str) -> &mut Self
[src]
fn year(&mut self, year: &str) -> &mut Self
[src]
fn offset(&mut self, timezone_offset: i64) -> &mut Self
[src]
fn start_job(&mut self)
[src]
Starts the cronjob without threading.
fn start_job_threaded(cronjob: CronJob)
[src]
Starts the cronjob with threading. Stops when application quits.