diff options
Diffstat (limited to 'third_party/rust/hyper/src/rt.rs')
-rw-r--r-- | third_party/rust/hyper/src/rt.rs | 12 |
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); +} |