diff options
Diffstat (limited to 'third_party/rust/hyper/src/common/mod.rs')
-rw-r--r-- | third_party/rust/hyper/src/common/mod.rs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/third_party/rust/hyper/src/common/mod.rs b/third_party/rust/hyper/src/common/mod.rs new file mode 100644 index 0000000000..e436fe5e2d --- /dev/null +++ b/third_party/rust/hyper/src/common/mod.rs @@ -0,0 +1,26 @@ +macro_rules! ready { + ($e:expr) => { + match $e { + std::task::Poll::Ready(v) => v, + std::task::Poll::Pending => return std::task::Poll::Pending, + } + }; +} + +pub(crate) mod buf; +pub(crate) mod drain; +pub(crate) mod exec; +pub(crate) mod io; +mod lazy; +mod never; +pub(crate) mod task; +pub(crate) mod watch; + +pub use self::exec::Executor; +pub(crate) use self::exec::{BoxSendFuture, Exec}; +pub(crate) use self::lazy::{lazy, Started as Lazy}; +pub use self::never::Never; +pub(crate) use self::task::Poll; + +// group up types normally needed for `Future` +pub(crate) use std::{future::Future, marker::Unpin, pin::Pin}; |