pub struct Schedule { /* private fields */ }Expand description
Represents a cron schedule pattern with its methods.
For cron schedule clarification and usage examples, please refer to the crate documentation.
Implementations§
Source§impl Schedule
impl Schedule
Sourcepub fn upcoming<Tz: TimeZone>(
&self,
current: &DateTime<Tz>,
) -> Option<DateTime<Tz>>
pub fn upcoming<Tz: TimeZone>( &self, current: &DateTime<Tz>, ) -> Option<DateTime<Tz>>
Return time of the upcoming cron event starting from (including) provided current value.
Returns None if there is no upcoming event’s time.
Trait Implementations§
Source§impl Ord for Schedule
impl Ord for Schedule
Source§impl PartialOrd for Schedule
impl PartialOrd for Schedule
impl Eq for Schedule
impl StructuralPartialEq 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
Mutably borrows from an owned value. Read more