Struct cron_clock::Schedule [−][src]
pub struct Schedule { /* fields omitted */ }
Expand description
Metadata for cron-expression parsing.
Implementations
pub fn upcoming<Z>(&self, timezone: Z) -> ScheduleIterator<'_, Z>ⓘNotable traits for ScheduleIterator<'a, Z>impl<'a, Z> Iterator for ScheduleIterator<'a, Z> where
Z: TimeZone, type Item = DateTime<Z>;
where
Z: TimeZone,
pub fn upcoming<Z>(&self, timezone: Z) -> ScheduleIterator<'_, Z>ⓘNotable traits for ScheduleIterator<'a, Z>impl<'a, Z> Iterator for ScheduleIterator<'a, Z> where
Z: TimeZone, type Item = DateTime<Z>;
where
Z: TimeZone,
impl<'a, Z> Iterator for ScheduleIterator<'a, Z> where
Z: TimeZone, type Item = DateTime<Z>;
Provides an iterator which will return each DateTime that matches the schedule starting with the current time if applicable.
pub fn after<Z>(&self, after: &DateTime<Z>) -> ScheduleIterator<'_, Z>ⓘNotable traits for ScheduleIterator<'a, Z>impl<'a, Z> Iterator for ScheduleIterator<'a, Z> where
Z: TimeZone, type Item = DateTime<Z>;
where
Z: TimeZone,
pub fn after<Z>(&self, after: &DateTime<Z>) -> ScheduleIterator<'_, Z>ⓘNotable traits for ScheduleIterator<'a, Z>impl<'a, Z> Iterator for ScheduleIterator<'a, Z> where
Z: TimeZone, type Item = DateTime<Z>;
where
Z: TimeZone,
impl<'a, Z> Iterator for ScheduleIterator<'a, Z> where
Z: TimeZone, type Item = DateTime<Z>;
Like the upcoming
method, but allows you to specify a start time other than the present.
pub fn upcoming_owned<Z>(self, timezone: Z) -> ScheduleIteratorOwned<Z>ⓘNotable traits for ScheduleIteratorOwned<Z>impl<Z> Iterator for ScheduleIteratorOwned<Z> where
Z: TimeZone, type Item = DateTime<Z>;
where
Z: TimeZone,
pub fn upcoming_owned<Z>(self, timezone: Z) -> ScheduleIteratorOwned<Z>ⓘNotable traits for ScheduleIteratorOwned<Z>impl<Z> Iterator for ScheduleIteratorOwned<Z> where
Z: TimeZone, type Item = DateTime<Z>;
where
Z: TimeZone,
impl<Z> Iterator for ScheduleIteratorOwned<Z> where
Z: TimeZone, type Item = DateTime<Z>;
Provides an iterator which will return each DateTime that matches the schedule starting with the current time if applicable.
pub fn into_schedule_iterator<Z>(
self,
after: DateTime<Z>
) -> ScheduleIteratorOwned<Z>ⓘNotable traits for ScheduleIteratorOwned<Z>impl<Z> Iterator for ScheduleIteratorOwned<Z> where
Z: TimeZone, type Item = DateTime<Z>;
where
Z: TimeZone,
pub fn into_schedule_iterator<Z>(
self,
after: DateTime<Z>
) -> ScheduleIteratorOwned<Z>ⓘNotable traits for ScheduleIteratorOwned<Z>impl<Z> Iterator for ScheduleIteratorOwned<Z> where
Z: TimeZone, type Item = DateTime<Z>;
where
Z: TimeZone,
impl<Z> Iterator for ScheduleIteratorOwned<Z> where
Z: TimeZone, type Item = DateTime<Z>;
Like the upcoming
method, but allows you to specify a start time other than the present.
Returns a TimeUnitSpec describing the years included in this Schedule.
Returns a TimeUnitSpec describing the months of the year included in this Schedule.
Returns a TimeUnitSpec describing the days of the month included in this Schedule.
Returns a TimeUnitSpec describing the days of the week included in this Schedule.
Returns a TimeUnitSpec describing the hours of the day included in this Schedule.
Returns a TimeUnitSpec describing the minutes of the hour included in this Schedule.
Returns a TimeUnitSpec describing the seconds of the minute included in this Schedule.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Schedule
impl UnwindSafe for Schedule
Blanket Implementations
Mutably borrows from an owned value. Read more