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

next_fire_time calculates the next tick in which the job should execute. Returning an error signals the scheduler to remove the task.

Implementors