pub struct Schedule { /* private fields */ }Implementations§
Source§impl 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>) -> boolwhere
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
Auto Trait Implementations§
impl Freeze for Schedule
impl RefUnwindSafe for Schedule
impl Send for Schedule
impl Sync for Schedule
impl Unpin for Schedule
impl UnwindSafe for Schedule
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more