blob: 2614b591127cf5eca725a59442505a8b6ce28fa8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
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);
}
|