start_server

Function start_server 

Source
pub async fn start_server<T: HttpServer + Send + 'static + Sync>(
    server: T,
    host: &str,
) -> Result<(), Box<dyn Error>>
Expand description

Start HttpServer on some host

Use HttpServerStarter to set more options

Examples found in repository?
examples/small_site.rs (line 35)
34async fn main() {
35    start_server(EzSite("Hello World!".to_string()), "localhost:8080").await.expect("http server error");
36}