[][src]Function tsukuyomi_server::test::server

pub fn server<S, Bd>(make_service: S) -> Result<Server<S, Runtime>> where
    S: MakeService<(), Request<Body>, Response = Response<Bd>>,
    S::Error: Into<Box<dyn Error + Send + Sync + 'static>>,
    S::Service: Send + 'static,
    <S::Service as Service<Request<Body>>>::Future: Send + 'static,
    S::MakeError: Into<Box<dyn Error + Send + Sync + 'static>>,
    S::Future: Send + 'static,
    Bd: Payload

Creates a test server using the specified service factory.