Struct edge_schema::schema::CronTab
source · 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§
source§impl PartialEq for CronTab
impl PartialEq for CronTab
impl Eq for CronTab
impl StructuralEq for CronTab
impl StructuralPartialEq for CronTab
Auto Trait Implementations§
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.