pub struct Cron { /* private fields */ }Expand description
a parsed cron expression
Implementations§
Source§impl Cron
impl Cron
Sourcepub fn matches_date(&self, y: i32, m: u8, d: u8) -> bool
pub fn matches_date(&self, y: i32, m: u8, d: u8) -> bool
whether a date matches the month, day-of-month and day-of-week fields
Sourcepub fn next_after(&self, after: Timestamp, zone: &Zone) -> Option<Timestamp>
pub fn next_after(&self, after: Timestamp, zone: &Zone) -> Option<Timestamp>
the first run strictly after after in zone
Trait Implementations§
impl Eq for Cron
impl StructuralPartialEq for Cron
Auto Trait Implementations§
impl Forget for Cron
impl Freeze 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