pub struct CronTab { /* private fields */ }Expand description
Crontab schedule.
See https://en.wikipedia.org/wiki/Cron
§┌───────────── minute (0 - 59)
§│ ┌───────────── hour (0 - 23)
§│ │ ┌───────────── day of the month (1 - 31)
§│ │ │ ┌───────────── month (1 - 12)
§│ │ │ │ ┌───────────── day of the week (0 - 6) (Sunday to Saturday;
§│ │ │ │ │ 7 is also Sunday on some systems)
§│ │ │ │ │
§│ │ │ │ │
§* * * * *
Implementations§
Source§impl CronTab
impl CronTab
pub fn next( &self, _last: Option<OffsetDateTime>, _drift: Option<Duration>, ) -> Result<OffsetDateTime, Error>
pub fn max_timewindow(&self) -> Duration
Trait Implementations§
impl Eq for CronTab
impl StructuralPartialEq for CronTab
Auto Trait Implementations§
impl Freeze for CronTab
impl RefUnwindSafe for CronTab
impl Send for CronTab
impl Sync for CronTab
impl Unpin for CronTab
impl UnwindSafe for CronTab
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.