Skip to main content

HandlerFn

Type Alias HandlerFn 

Source
pub type HandlerFn = Arc<dyn for<'a> Fn(&'a mut dyn IHttpContext) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>> + Send + Sync>;
Expand description

Boxed final handler function type.

Aliased Type§

pub struct HandlerFn { /* private fields */ }