Lines Matching refs:S
169 pub struct EchoHeadersSvc<S> {
170 inner: S,
173 impl<S: NamedService> NamedService for EchoHeadersSvc<S> {
174 const NAME: &'static str = S::NAME;
177 impl<S> EchoHeadersSvc<S> {
178 pub fn new(inner: S) -> Self { in new()
183 impl<S> Service<http::Request<Body>> for EchoHeadersSvc<S>
185 S: Service<http::Request<Body>, Response = http::Response<Body>> + Send,
186 S::Future: Send + 'static,
188 type Response = S::Response;
189 type Error = S::Error;