A background async interval and 5-field cron job scheduler plugin for the Hyperlane framework with lock-free overlap protection, Tokio panic isolation, atomic per-job metrics, and graceful shutdown.
usesuper::*;/// Schedule kind controlling when a registered job executes.
#[derive(Clone, Debug, Eq, PartialEq)]pubenumJobSchedule{/// Runs repeatedly with a fixed delay between scheduled ticks.
Interval(Duration),/// Runs on matching UTC minutes defined by a parsed 5-field [`CronMask`].
Cron(CronMask),}/// Configuration or expression parsing error for [`Scheduler`].
#[derive(Clone, Copy, Debug, Eq, PartialEq)]pubenumSchedulerError{/// Cron expression failed validation.
InvalidCron,/// Interval duration was zero.
ZeroInterval,}