pub enum Repeat {
Daily(Time),
Weekdays(Time),
Weekly(Vec<Weekday>, Time),
Monthly(i8, Time),
EveryHours(i64),
}Expand description
When a task fires again, written daily 08:00, weekdays 08:00, weekly mon,fri 09:00,
monthly 1 09:00 or every 3h.
Variants§
Daily(Time)
Every day at a local time.
Weekdays(Time)
Monday to Friday at a local time.
Weekly(Vec<Weekday>, Time)
On some days of the week (Monday first, no duplicates) at a local time.
Monthly(i8, Time)
On a day of the month (the last day in shorter months) at a local time.
EveryHours(i64)
Every few hours after the previous firing (1 to 168).
Implementations§
Trait Implementations§
impl Eq for Repeat
impl StructuralPartialEq for Repeat
Auto Trait Implementations§
impl Freeze for Repeat
impl RefUnwindSafe for Repeat
impl Send for Repeat
impl Sync for Repeat
impl Unpin for Repeat
impl UnsafeUnpin for Repeat
impl UnwindSafe for Repeat
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