pub type ScheduleHook = Box<dyn Fn(&str, Value, Option<u64>, Option<u64>) -> Result<String, String> + Send + Sync>;Expand description
Callback invoked when a function calls ctx.scheduler.runAfter/runAt.
Returns Ok(job_id) on success or Err(msg) on persistence/queue
failure. The runner reports the error back to the calling handler so
users don’t get a silent {scheduled: true, id: ""}.
Aliased Type§
pub struct ScheduleHook(/* private fields */);