Function actix_service::fn_service
source ยท pub fn fn_service<F, Fut, Req, Res, Err, Cfg>(
f: F,
) -> FnServiceFactory<F, Fut, Req, Res, Err, Cfg>
Expand description
Create ServiceFactory
for function that can act as a Service
pub fn fn_service<F, Fut, Req, Res, Err, Cfg>(
f: F,
) -> FnServiceFactory<F, Fut, Req, Res, Err, Cfg>
Create ServiceFactory
for function that can act as a Service