Enum edge_schema::schema::CronSchedule
source · pub enum CronSchedule {
Interval(Duration),
CronTab(CronTab),
}Variants§
Implementations§
source§impl CronSchedule
impl CronSchedule
pub fn next( &self, last: Option<OffsetDateTime>, drift: Option<Duration> ) -> Result<OffsetDateTime, Error>
sourcepub fn max_timewindow(&self) -> Duration
pub fn max_timewindow(&self) -> Duration
Get the maximum time allowed between job invocations.
Trait Implementations§
source§impl Clone for CronSchedule
impl Clone for CronSchedule
source§fn clone(&self) -> CronSchedule
fn clone(&self) -> CronSchedule
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for CronSchedule
impl Debug for CronSchedule
source§impl Display for CronSchedule
impl Display for CronSchedule
source§impl FromStr for CronSchedule
impl FromStr for CronSchedule
source§impl PartialEq for CronSchedule
impl PartialEq for CronSchedule
source§fn eq(&self, other: &CronSchedule) -> bool
fn eq(&self, other: &CronSchedule) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for CronSchedule
impl StructuralEq for CronSchedule
impl StructuralPartialEq for CronSchedule
Auto Trait Implementations§
impl RefUnwindSafe for CronSchedule
impl Send for CronSchedule
impl Sync for CronSchedule
impl Unpin 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
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.