[−][src]Struct cron_clock::schedule::Schedule
Implementations
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 upcoming_owned<Z>(self, timezone: Z) -> ScheduleIteratorOwned<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 to_schedule_iterator<Z>(
self,
after: &DateTime<Z>
) -> ScheduleIteratorOwned<Z> where
Z: TimeZone,
[src]
self,
after: &DateTime<Z>
) -> ScheduleIteratorOwned<Z> where
Z: TimeZone,
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
Auto Trait Implementations
impl RefUnwindSafe for Schedule
impl Send for Schedule
impl Sync for Schedule
impl Unpin for Schedule
impl UnwindSafe for Schedule
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,