Expand description
CronSchedule – validated cron expression newtype.
Wraps croner::Cron to guarantee that any CronSchedule value
holds a syntactically valid cron expression. Construction
is fallible; once built the value is safe to pass to
tokio_cron_scheduler without further validation.
A schedule also carries a SchedulePolicy: what to do with missed
occurrences, with overlapping runs, and the timezone the expression is
evaluated in.
Structs§
- Cron
Schedule - A validated cron expression.
- Schedule
Policy - Catch-up, overlap and timezone policy of a schedule.
Enums§
- Catchup
Policy - What a schedule does with the occurrences it missed while no server was firing it (downtime, a long deploy, a stalled ticker).
- Overlap
Policy - What a schedule does when an occurrence comes while one of its runs is still active.