pub type HookFn = Arc<dyn Fn(&HookContext, &SerializedTask) -> Pin<Box<dyn Future<Output = Result<()>> + Send>> + Send + Sync>;Expand description
Type alias for async lifecycle hook functions
Hooks are async functions that take a hook context and serialized task, and return a Result. They can be used to inject custom logic at various points in the task lifecycle.
Aliased Typeยง
pub struct HookFn { /* private fields */ }