[][src]Struct job_scheduler::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>(&'a self, after: &DateTime<Z>) -> ScheduleIterator<'a, 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) -> &impl TimeUnitSpec[src]

Returns a TimeUnitSpec describing the years included in this Schedule.

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

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

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

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

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

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

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

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

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

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

pub fn seconds(&self) -> &impl TimeUnitSpec[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

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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<V, T> VZip<V> for T where
    V: MultiLane<T>,