ServerHookHandler

Type Alias ServerHookHandler 

Source
pub type ServerHookHandler = Arc<dyn Fn(&Context) -> SendableAsyncTask<()> + 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 &Context and returns a pinned, boxed future that resolves to ().

Aliased Typeยง

pub struct ServerHookHandler { /* private fields */ }