pub struct Cron { /* private fields */ }Expand description
A five-field cron expression (minute hour day-of-month month day-of-week; *, lists,
ranges and /steps; Sunday is 0 or 7). When both day fields are restricted either may
match, as in classic cron.
Implementations§
Source§impl Cron
impl Cron
Sourcepub fn next_after(&self, after: i64) -> Option<i64>
pub fn next_after(&self, after: i64) -> Option<i64>
The first matching minute after after (epoch ms) in local time, within about four years.
Sourcepub fn next_after_in<Z: TimeZone>(&self, after: i64, z: &Z) -> Option<i64>
pub fn next_after_in<Z: TimeZone>(&self, after: i64, z: &Z) -> Option<i64>
Cron::next_after evaluated in zone z (UTC, a fixed offset, or local).
Times are stepped as wall-clock times in z and only then turned into instants, so
daylight-saving changes neither loop nor skip days: a time that does not exist
(the hour clocks jump over) does not fire that day, and one that happens twice (the
hour clocks repeat) fires once, at its first occurrence.
Trait Implementations§
impl StructuralPartialEq for Cron
Auto Trait Implementations§
impl Forget for Cron
impl Freeze for Cron
impl Move for Cron
impl RefUnwindSafe for Cron
impl Send for Cron
impl Sync for Cron
impl Unpin for Cron
impl UnsafeUnpin for Cron
impl UnwindSafe for Cron
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