Skip to main content

HookFunction

Type Alias HookFunction 

Source
pub type HookFunction = Arc<dyn Fn(Arc<AppState>, HookContext) -> BoxFuture<'static, ClResult<HookResult>> + Send + Sync>;
Expand description

Native hook function type Takes AppState and HookContext, returns a Future resolving to HookResult

Aliased Typeยง

pub struct HookFunction { /* private fields */ }