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