[−][src]Struct scron::Schedule
Methods
impl Schedule
[src]
pub fn upcoming<Z>(&self, timezone: Z) -> ScheduleIterator<Z> where
Z: TimeZone,
[src]
Z: TimeZone,
Provides an iterator which will return each DateTime that matches the schedule starting with the current time if applicable.
pub fn after<'a, Z>(&'a self, after: &DateTime<Z>) -> ScheduleIterator<'a, Z> where
Z: TimeZone,
[src]
Z: TimeZone,
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
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,