[][src]Module hyper::rt

Default runtime

By default, hyper includes the tokio runtime. To ease using it, several types are re-exported here.

The inclusion of a default runtime can be disabled by turning off hyper's runtime Cargo feature.

Traits

Future

Trait for types which are a placeholder of a value that may become available at some later point in time.

Stream

A stream of values, not all of which may have been produced yet.

Functions

lazy

Creates a new future which will eventually be the same as the one created by the closure provided.

poll_fn

Creates a new future wrapping around a function returning Poll.

run

Start the Tokio runtime using the supplied future to bootstrap execution.

spawn

Spawns a future on the default executor.