1 macro_rules! ready { 2 ($e:expr) => { 3 match $e { 4 std::task::Poll::Ready(v) => v, 5 std::task::Poll::Pending => return std::task::Poll::Pending, 6 } 7 }; 8 } 9 10 pub(crate) mod buf; 11 #[cfg(all(feature = "server", any(feature = "http1", feature = "http2")))] 12 pub(crate) mod date; 13 #[cfg(all(feature = "server", any(feature = "http1", feature = "http2")))] 14 pub(crate) mod drain; 15 #[cfg(any(feature = "http1", feature = "http2", feature = "server"))] 16 pub(crate) mod exec; 17 pub(crate) mod io; 18 #[cfg(all(feature = "client", any(feature = "http1", feature = "http2")))] 19 mod lazy; 20 #[cfg(any( 21 feature = "stream", 22 all(feature = "client", any(feature = "http1", feature = "http2")) 23 ))] 24 pub(crate) mod sync_wrapper; 25 #[cfg(feature = "http1")] 26 pub(crate) mod task; 27 pub(crate) mod watch; 28 29 #[cfg(all(feature = "client", any(feature = "http1", feature = "http2")))] 30 pub(crate) use self::lazy::{lazy, Started as Lazy}; 31