Skip to main content

ServerHookHandlerFactory

Type Alias ServerHookHandlerFactory 

Source
pub type ServerHookHandlerFactory = fn() -> Arc<dyn Fn(&mut Stream, &mut Context) -> Pin<Box<dyn Future<Output = Status> + Send>> + Sync + Send>;
Expand description

A type alias for a hook handler factory function.

This function pointer type is used to create ServerHookHandler instances based on generic types. It allows delayed instantiation of handlers.