logo

Function actix_service::fn_service[][src]

pub fn fn_service<F, Fut, Req, Res, Err, Cfg>(
    f: F
) -> FnServiceFactory<F, Fut, Req, Res, Err, Cfg> where
    F: Fn(Req) -> Fut + Clone,
    Fut: Future<Output = Result<Res, Err>>, 
Expand description

Create ServiceFactory for function that can act as a Service