pub struct CronSchedule { /* private fields */ }Expand description
Compiled 5-field or 6-field cron expression backed by O(1) bitmasks.
Implementations§
Source§impl CronSchedule
Parsing, matching, and next-occurrence computation for CronSchedule.
impl CronSchedule
Parsing, matching, and next-occurrence computation for CronSchedule.
Sourcepub fn matches_datetime(&self, dt: UtcDateTime) -> bool
pub fn matches_datetime(&self, dt: UtcDateTime) -> bool
Sourcepub fn matches_unix_secs(&self, unix_secs: i64) -> bool
pub fn matches_unix_secs(&self, unix_secs: i64) -> bool
Sourcepub fn next_after(&self, after_unix_secs: i64) -> Option<i64>
pub fn next_after(&self, after_unix_secs: i64) -> Option<i64>
Computes the next Unix timestamp strictly greater than after_unix_secs matching this schedule.
Uses direct bitmask field jumps (O(1) per field carry) rather than second-by-second stepping.
§Arguments
i64- Exclusive lower bound Unix timestamp in seconds.
§Returns
Option<i64>- Next matching Unix timestamp in seconds, orNoneif unreachable within 100 years.
Trait Implementations§
Source§impl Clone for CronSchedule
impl Clone for CronSchedule
impl Copy for CronSchedule
Source§impl Debug for CronSchedule
impl Debug for CronSchedule
impl Eq for CronSchedule
Source§impl FromStr for CronSchedule
Parses a CronSchedule via FromStr.
impl FromStr for CronSchedule
Parses a CronSchedule via FromStr.
Source§impl Hash for CronSchedule
impl Hash for CronSchedule
Source§impl PartialEq for CronSchedule
impl PartialEq for CronSchedule
impl StructuralPartialEq for CronSchedule
Auto Trait Implementations§
impl Forget for CronSchedule
impl Freeze for CronSchedule
impl Move for CronSchedule
impl RefUnwindSafe for CronSchedule
impl Send for CronSchedule
impl Sync for CronSchedule
impl Unpin for CronSchedule
impl UnsafeUnpin for CronSchedule
impl UnwindSafe for CronSchedule
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