Enum lightspeed_scheduler::scheduler::Scheduler
source · pub enum Scheduler {
Cron(Schedule),
Interval {
interval_duration: Duration,
execute_at_startup: bool,
},
Multi(Vec<Scheduler>),
Never,
}
Variants§
Cron(Schedule)
Set to execute on set time periods
Interval
Set to execute exactly duration
away from the previous execution.
If
Multi(Vec<Scheduler>)
Multi shceduler: the execution is trigger where at least one of the schedulers in matched
Never
Set to execute to never
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Scheduler
impl RefUnwindSafe for Scheduler
impl Send for Scheduler
impl Sync for Scheduler
impl Unpin for Scheduler
impl UnwindSafe for Scheduler
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