cc #2251 BREAKING CHANGE: This puts all HTTP/1 methods and support behind an `http1` cargo feature, which will not be enabled by default. To use HTTP/1, add `features = ["http1"]` to the hyper dependency in your `Cargo.toml`.
13 lines
355 B
Rust
13 lines
355 B
Rust
//! 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);
|
|
}
|