[−][src]Function actix_service::fn_service
pub fn fn_service<F, Req, Out, Cfg>(f: F) -> FnNewService<F, Req, Out, Cfg> where
F: FnMut(Req) -> Out + Clone,
Out: IntoFuture,
Create NewService
for function that can act as Service
pub fn fn_service<F, Req, Out, Cfg>(f: F) -> FnNewService<F, Req, Out, Cfg> where
F: FnMut(Req) -> Out + Clone,
Out: IntoFuture,
Create NewService
for function that can act as Service