pub enum TaskSchedule {
Once {
run_at: SystemTime,
},
Interval {
every: Duration,
start_at: Option<SystemTime>,
},
Cron {
expression: String,
},
}Expand description
Supported local task schedule.
Variants§
Once
Run once at the supplied wall-clock instant.
Fields
§
run_at: SystemTimeScheduled execution instant.
Interval
Run repeatedly at a fixed interval.
Fields
§
start_at: Option<SystemTime>Optional first execution instant.
Cron
A six- or seven-field cron expression evaluated in UTC.
Trait Implementations§
Source§impl Clone for TaskSchedule
impl Clone for TaskSchedule
Source§fn clone(&self) -> TaskSchedule
fn clone(&self) -> TaskSchedule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TaskSchedule
impl Debug for TaskSchedule
impl Eq for TaskSchedule
Source§impl PartialEq for TaskSchedule
impl PartialEq for TaskSchedule
impl StructuralPartialEq for TaskSchedule
Auto Trait Implementations§
impl Freeze for TaskSchedule
impl RefUnwindSafe for TaskSchedule
impl Send for TaskSchedule
impl Sync for TaskSchedule
impl Unpin for TaskSchedule
impl UnsafeUnpin for TaskSchedule
impl UnwindSafe for TaskSchedule
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