pub enum ScheduleAt {
Interval(Duration),
DateTime(DateTime),
Daily(NaiveTime),
}
Expand description
The execution schedule for a particular task.
Variants§
Interval(Duration)
Run a task at a regular interval.
The first run will be immediately upon calling Schedule::run, then will repeat at the period set here.
The interval must be non-negative. A task with a duration of 0
will
run on every wake timer.
DateTime(DateTime)
Run a one-time task at the given date and time.
Daily(NaiveTime)
Run a task every day at the specified time.
Auto Trait Implementations§
impl Freeze for ScheduleAt
impl RefUnwindSafe for ScheduleAt
impl Send for ScheduleAt
impl Sync for ScheduleAt
impl Unpin for ScheduleAt
impl UnwindSafe for ScheduleAt
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