pub struct RecurringSpec<P> {
pub name: Arc<str>,
pub cron: Arc<str>,
pub tz: Option<Arc<str>>,
pub template: TaskSpec<P>,
pub deadline_after: Option<Duration>,
pub overlap: OverlapPolicy,
pub tolerance: Duration,
pub on_miss: MissPolicy,
}Expand description
A cron schedule that submits a fixed-start task from template at each occurrence.
Fields§
§name: Arc<str>Unique schedule name (occurrences are tagged cronoq.recurring=<name>).
cron: Arc<str>Cron expression (5 or 6 fields, seconds optional).
tz: Option<Arc<str>>IANA time zone (default UTC).
template: TaskSpec<P>Spec of each occurrence. Its fixed_start is set to the occurrence; a key is a
prefix that each occurrence extends with @ and its UTC start time (RFC 3339).
deadline_after: Option<Duration>Deadline of each occurrence, relative to its start.
overlap: OverlapPolicyWhat to do while the previous occurrence is still live.
tolerance: DurationHow late an occurrence may start.
on_miss: MissPolicyWhat to do when an occurrence misses its tolerance.
Trait Implementations§
Source§impl<P> Clone for RecurringSpec<P>
impl<P> Clone for RecurringSpec<P>
Auto Trait Implementations§
impl<P> Freeze for RecurringSpec<P>
impl<P> RefUnwindSafe for RecurringSpec<P>where
TaskSpec<P>: RefUnwindSafe,
impl<P> Send for RecurringSpec<P>
impl<P> Sync for RecurringSpec<P>
impl<P> Unpin for RecurringSpec<P>
impl<P> UnsafeUnpin for RecurringSpec<P>where
TaskSpec<P>: UnsafeUnpin,
impl<P> UnwindSafe for RecurringSpec<P>where
TaskSpec<P>: 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