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