pub struct Schedule { /* private fields */ }
Implementations
sourceimpl Schedule
impl Schedule
sourcepub fn upcoming<Z>(&self, timezone: Z) -> ScheduleIterator<'_, Z> where
Z: TimeZone,
pub fn upcoming<Z>(&self, timezone: Z) -> ScheduleIterator<'_, Z> where
Z: TimeZone,
Provides an iterator which will return each DateTime that matches the schedule starting with the current time if applicable.
sourcepub fn upcoming_owned<Z>(&self, timezone: Z) -> OwnedScheduleIterator<Z> where
Z: TimeZone,
pub fn upcoming_owned<Z>(&self, timezone: Z) -> OwnedScheduleIterator<Z> where
Z: TimeZone,
The same, but with an iterator with a static ownership
sourcepub fn after<Z>(&self, after: &DateTime<Z>) -> ScheduleIterator<'_, Z> where
Z: TimeZone,
pub fn after<Z>(&self, after: &DateTime<Z>) -> ScheduleIterator<'_, Z> where
Z: TimeZone,
Like the upcoming
method, but allows you to specify a start time other than the present.
sourcepub fn after_owned<Z>(&self, after: DateTime<Z>) -> OwnedScheduleIterator<Z> where
Z: TimeZone,
pub fn after_owned<Z>(&self, after: DateTime<Z>) -> OwnedScheduleIterator<Z> where
Z: TimeZone,
The same, but with a static ownership.
pub fn includes<Z>(&self, date_time: DateTime<Z>) -> bool where
Z: TimeZone,
sourcepub fn years(&self) -> &impl TimeUnitSpec
pub fn years(&self) -> &impl TimeUnitSpec
Returns a TimeUnitSpec describing the years included in this Schedule.
sourcepub fn months(&self) -> &impl TimeUnitSpec
pub fn months(&self) -> &impl TimeUnitSpec
Returns a TimeUnitSpec describing the months of the year included in this Schedule.
sourcepub fn days_of_month(&self) -> &impl TimeUnitSpec
pub fn days_of_month(&self) -> &impl TimeUnitSpec
Returns a TimeUnitSpec describing the days of the month included in this Schedule.
sourcepub fn days_of_week(&self) -> &impl TimeUnitSpec
pub fn days_of_week(&self) -> &impl TimeUnitSpec
Returns a TimeUnitSpec describing the days of the week included in this Schedule.
sourcepub fn hours(&self) -> &impl TimeUnitSpec
pub fn hours(&self) -> &impl TimeUnitSpec
Returns a TimeUnitSpec describing the hours of the day included in this Schedule.
sourcepub fn minutes(&self) -> &impl TimeUnitSpec
pub fn minutes(&self) -> &impl TimeUnitSpec
Returns a TimeUnitSpec describing the minutes of the hour included in this Schedule.
sourcepub fn seconds(&self) -> &impl TimeUnitSpec
pub fn seconds(&self) -> &impl TimeUnitSpec
Returns a TimeUnitSpec describing the seconds of the minute included in this Schedule.
pub fn timeunitspec_eq(&self, other: &Schedule) -> bool
Trait Implementations
impl Eq for Schedule
impl StructuralEq for Schedule
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more