[−][src]Struct crony::Schedule
Re-export of (cron)[https://crates.io/crates/cron] crate struct for setting the cron schedule time. Read its documentation for more information and options.
Implementations
impl Schedule
[src]
Re-export of (cron)[https://crates.io/crates/cron] crate struct for setting the cron schedule time. Read its documentation for more information and options.
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<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) -> &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 Clone for Schedule
[src]
impl Debug for Schedule
[src]
impl Display for Schedule
[src]
impl FromStr for Schedule
[src]
Auto Trait Implementations
impl RefUnwindSafe for Schedule
[src]
impl Send for Schedule
[src]
impl Sync for Schedule
[src]
impl Unpin for Schedule
[src]
impl UnwindSafe for Schedule
[src]
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
pub 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>,