Skip to main content

generic_create_middleware

Function generic_create_middleware 

Source
pub unsafe extern "C" fn generic_create_middleware<T>() -> MiddlewareFatPtr
where T: HttpWardMiddleware + Send + Sync + 'static + Default,
Expand description

Generic module logger setup function This can be used directly by modules or through the export_middleware_module macro Note: This function is not FFI-safe due to &str parameter, use the macro instead Generic middleware creation function Creates a middleware instance of type T and returns it as a fat pointer