Skip to main content

service

Function service 

Source
pub fn service<T>(
    service: T,
) -> impl Service<Request<Body>, Response = Response<Body>, Error = Infallible, Future: Send + 'static> + NamedService + Clone + Send + Sync + 'static
where T: ApiService + Send + Sync + 'static,