pub fn run(port: u16) {
    let addr = ([0, 0, 0, 0], port).into();
    println!("Starting the HTTP server at {}", addr);

    let server = Server::bind(&addr)
        .serve(|| hyper::service::service_fn(hello))
        .map_err(|error| eprintln!("The HTTP server error: {}", error));

    hyper::rt::run(server);
}
///
/// The blocking method which runs the HTTP server.
///
The blocking method which runs the HTTP server.
The blocking method which runs the HTTP server .
pub fn run(port: u16) {
    let addr = ([0, 0, 0, 0], port).into();
    println!("Starting the HTTP server at {}", addr);
    let server = Server::bind(&addr)
        .serve(|| hyper::service::service_fn(hello))
        .map_err(|error| eprintln!("The HTTP server error: {}", error));
    hyper::rt::run(server);
}
pub fn run ( port : u16 ) { let addr = ( [ 0 , 0 , 0 , 0 ] , port ) . into ( ) ; println ! ( " " addr ) ; let server = Server :: bind ( & addr ) . serve ( | | hyper :: service :: service_fn ( hello ) ) . map_err ( | error | eprintln ! ( " " error ) ) ; hyper :: rt :: run ( server ) ; }
The blocking method which runs the HTTP server.
The blocking method which runs the HTTP server .
port
u16
port
u16