summaryrefslogtreecommitdiffstats
path: root/third_party/rust/hyper/src/rt.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--third_party/rust/hyper/src/rt.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/third_party/rust/hyper/src/rt.rs b/third_party/rust/hyper/src/rt.rs
new file mode 100644
index 0000000000..2614b59112
--- /dev/null
+++ b/third_party/rust/hyper/src/rt.rs
@@ -0,0 +1,12 @@
+//! Runtime components
+//!
+//! By default, hyper includes the [tokio](https://tokio.rs) runtime.
+//!
+//! If the `runtime` feature is disabled, the types in this module can be used
+//! to plug in other runtimes.
+
+/// An executor of futures.
+pub trait Executor<Fut> {
+ /// Place the future into the executor to be run.
+ fn execute(&self, fut: Fut);
+}