pub type ServerHookHandler = Arc<dyn Fn(&mut Context) -> SendableAsyncTask<Context> + Send + Sync>;Expand description
Type alias for a shared server hook hook.
This type allows storing handlers (route and middleware) of different concrete types
in the same collection. The hook takes a &Context and returns
a pinned, boxed future that resolves to ().
Aliased Typeยง
pub struct ServerHookHandler { /* private fields */ }