[][src]Function tsukuyomi_server::test::local_server

pub fn local_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::MakeError: Into<Box<dyn Error + Send + Sync + 'static>>,
    Bd: Payload

Creates a test server that exexutes all task onto a single thread, using the specified service factory.