[][src]Struct scron::Schedule

pub struct Schedule { /* fields omitted */ }

Methods

impl Schedule[src]

pub fn upcoming<Z>(&self, timezone: Z) -> ScheduleIterator<Z> where
    Z: TimeZone
[src]

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> where
    Z: TimeZone
[src]

Like the upcoming method, but allows you to specify a start time other than the present.

pub fn years(&self) -> &Years[src]

Returns a TimeUnitSpec describing the years included in this Schedule.

pub fn months(&self) -> &Months[src]

Returns a TimeUnitSpec describing the months of the year included in this Schedule.

pub fn days_of_month(&self) -> &DaysOfMonth[src]

Returns a TimeUnitSpec describing the days of the month included in this Schedule.

pub fn days_of_week(&self) -> &DaysOfWeek[src]

Returns a TimeUnitSpec describing the days of the week included in this Schedule.

pub fn hours(&self) -> &Hours[src]

Returns a TimeUnitSpec describing the hours of the day included in this Schedule.

pub fn minutes(&self) -> &Minutes[src]

Returns a TimeUnitSpec describing the minutes of the hour included in this Schedule.

pub fn seconds(&self) -> &Seconds[src]

Returns a TimeUnitSpec describing the seconds of the minute included in this Schedule.

Trait Implementations

impl FromStr for Schedule[src]

type Err = Error

The associated error which can be returned from parsing.

Auto Trait Implementations

impl Send for Schedule

impl Sync for Schedule

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]