Trait quartz_sched::Trigger
source · [−]pub trait Trigger {
fn next_fire_time(&self) -> Result<i64, TriggerError>;
fn description(&self) -> String;
}
Expand description
Trigger is the trait for implementing triggers.
Required Methods
sourcefn next_fire_time(&self) -> Result<i64, TriggerError>
fn next_fire_time(&self) -> Result<i64, TriggerError>
next_fire_time calculates the next tick in which the job should execute. Returning an error signals the scheduler to remove the task.
source