Function hyper::rt::run

source · []
pub fn run<F>(f: F) where
    F: Future<Item = (), Error = ()> + Send + 'static, 
Expand description

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

Example

See the server documentation for an example of its usage.