pub struct AsyncJob<Args> { /* private fields */ }
Implementations§
Source§impl<Args> AsyncJobBuilder<Args>
impl<Args> AsyncJobBuilder<Args>
Trait Implementations§
Source§impl<Args> JobBuilder<Args> for AsyncJobBuilder<Args>
impl<Args> JobBuilder<Args> for AsyncJobBuilder<Args>
Source§fn get_mut_cron_builder(&mut self) -> &mut JobScheduleBuilder
fn get_mut_cron_builder(&mut self) -> &mut JobScheduleBuilder
Usually not use it directly, use
at_*
and since_*
is betterfn get_mut_since(&mut self) -> &mut (i32, u32, u32, u32, u32, u32)
Source§fn repeat_seq(&mut self, n: u32, interval: Interval) -> &mut Self
fn repeat_seq(&mut self, n: u32, interval: Interval) -> &mut Self
The task will run n times in sequence. You need to specify the number and the interval between tasks.
Source§fn repeat_async(&mut self, n: u32, interval: Interval) -> &mut Self
fn repeat_async(&mut self, n: u32, interval: Interval) -> &mut Self
Spawn n tasks at the same time. You need to specify the number and the interval between tasks.
Source§fn at(&mut self, interval: Interval) -> &mut Self
fn at(&mut self, interval: Interval) -> &mut Self
Specify a specific run time, equivalent to cron ‘n’
Source§fn since_every(&mut self, start: Interval, interval: Interval) -> &mut Self
fn since_every(&mut self, start: Interval, interval: Interval) -> &mut Self
Specify a specific run time, equivalent to the corn expression ‘m/n’
Source§fn every(&mut self, interval: Interval) -> &mut Self
fn every(&mut self, interval: Interval) -> &mut Self
Specify a specific run time, equivalent to the corn expression ‘0/n’
Source§fn from_to(&mut self, start: Interval, end: Interval) -> &mut Self
fn from_to(&mut self, start: Interval, end: Interval) -> &mut Self
Specify a specific run time, equivalent to the corn expression ‘m-n’
Source§fn at_datetime(
&mut self,
year: Option<i32>,
month: Option<u32>,
day: Option<u32>,
hour: Option<u32>,
min: Option<u32>,
sec: Option<u32>,
) -> &mut Self
fn at_datetime( &mut self, year: Option<i32>, month: Option<u32>, day: Option<u32>, hour: Option<u32>, min: Option<u32>, sec: Option<u32>, ) -> &mut Self
Specify a specific run time, the same as
at
Source§fn at_time(&mut self, hour: u32, min: u32, sec: u32) -> &mut Self
fn at_time(&mut self, hour: u32, min: u32, sec: u32) -> &mut Self
Specify a specific run time, the same as
at
Source§fn at_date(&mut self, year: i32, month: u32, day: u32) -> &mut Self
fn at_date(&mut self, year: i32, month: u32, day: u32) -> &mut Self
Specify a specific run time, the same as
at
Source§fn since_datetime(
&mut self,
year: i32,
month: u32,
day: u32,
hour: u32,
min: u32,
sec: u32,
) -> &mut Self
fn since_datetime( &mut self, year: i32, month: u32, day: u32, hour: u32, min: u32, sec: u32, ) -> &mut Self
Specify the datetime after which the task will start, the same as
since
Source§fn since_date(&mut self, year: i32, month: u32, day: u32) -> &mut Self
fn since_date(&mut self, year: i32, month: u32, day: u32) -> &mut Self
Specify the date after which the task will start, the same as
since
Auto Trait Implementations§
impl<Args> Freeze for AsyncJobBuilder<Args>
impl<Args> RefUnwindSafe for AsyncJobBuilder<Args>where
Args: RefUnwindSafe,
impl<Args> Send for AsyncJobBuilder<Args>where
Args: Send,
impl<Args> Sync for AsyncJobBuilder<Args>where
Args: Sync,
impl<Args> Unpin for AsyncJobBuilder<Args>where
Args: Unpin,
impl<Args> UnwindSafe for AsyncJobBuilder<Args>where
Args: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more