pub struct CronJob { /* private fields */ }
Expand description
The object to create and execute cronjobs for yout application.
Implementations
sourceimpl CronJob
impl CronJob
pub fn seconds(&mut self, seconds: &str) -> &mut Self
pub fn minutes(&mut self, minutes: &str) -> &mut Self
pub fn hours(&mut self, hours: &str) -> &mut Self
pub fn day_of_month(&mut self, day_of_month: &str) -> &mut Self
pub fn month(&mut self, month: &str) -> &mut Self
pub fn day_of_week(&mut self, day_of_week: &str) -> &mut Self
pub fn year(&mut self, year: &str) -> &mut Self
pub fn offset(&mut self, timezone_offset: i32) -> &mut Self
sourcepub fn set_checking_interval(&mut self, interval: u64) -> &mut Self
pub fn set_checking_interval(&mut self, interval: u64) -> &mut Self
Set checking interval in millis
sourcepub fn get_schedule(&mut self) -> Schedule
pub fn get_schedule(&mut self) -> Schedule
Returns the schedule for the cronjob, with this you are able to get the next occurences.
sourcepub fn start_job_threaded(cronjob: CronJob)
pub fn start_job_threaded(cronjob: CronJob)
Starts the cronjob with threading. Stops when application quits.
Auto Trait Implementations
impl !RefUnwindSafe for CronJob
impl Send for CronJob
impl Sync for CronJob
impl Unpin for CronJob
impl !UnwindSafe for CronJob
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more