Struct cron::Schedule
[−]
[src]
pub struct Schedule { /* fields omitted */ }
Methods
impl Schedule
[src]
fn upcoming<Z>(&self, timezone: Z) -> ScheduleIterator<Z> where
Z: TimeZone,
Z: TimeZone,
Provides an iterator which will return each DateTime that matches the schedule starting with the current time if applicable.
fn after<'a, Z>(&'a self, after: &DateTime<Z>) -> ScheduleIterator<'a, Z> where
Z: TimeZone,
Z: TimeZone,
Like the upcoming
method, but allows you to specify a start time other than the present.
fn years(&self) -> &impl TimeUnitSpec
Returns a TimeUnitSpec describing the years included in this Schedule.
fn months(&self) -> &impl TimeUnitSpec
Returns a TimeUnitSpec describing the months of the year included in this Schedule.
fn days_of_month(&self) -> &impl TimeUnitSpec
Returns a TimeUnitSpec describing the days of the month included in this Schedule.
fn days_of_week(&self) -> &impl TimeUnitSpec
Returns a TimeUnitSpec describing the days of the week included in this Schedule.
fn hours(&self) -> &impl TimeUnitSpec
Returns a TimeUnitSpec describing the hours of the day included in this Schedule.
fn minutes(&self) -> &impl TimeUnitSpec
Returns a TimeUnitSpec describing the minutes of the hour included in this Schedule.
fn seconds(&self) -> &impl TimeUnitSpec
Returns a TimeUnitSpec describing the seconds of the minute included in this Schedule.