Debian Codegraph @

third_party/rust/hyper/src/rt.rs

raw
1 //! Runtime components
2 //!
3 //! By default, hyper includes the [tokio](https://tokio.rs) runtime.
4 //!
5 //! If the `runtime` feature is disabled, the types in this module can be used
6 //! to plug in other runtimes.
7
8 /// An executor of futures.
9 pub trait Executor<Fut> {
10 /// Place the future into the executor to be run.
11 fn execute(&self, fut: Fut);
12 }