4 #![warn(rust_2021_compatibility)]
6 use std::future::Future;
11 pub fn block_on<F: Future>(&self, _future: F) -> F::Output {
16 pub fn http<F, Fut>(_func: F)
19 Fut: Future<Output = ()>,
22 let srv = rt.block_on(async move { serve(move || async move { unimplemented!() }) });
23 let _ = || rt.block_on(async { srv });
26 pub struct Server<S> {
27 _marker: std::marker::PhantomData<S>,
30 pub fn serve<S>(_new_service: S) -> Server<S> {