Function serve
Source pub async fn serve(app: LinoApp, address: &str) -> Result<()>
Expand description
Bind an application to an address and serve it.
§Errors
Whatever binding the socket or accepting a connection reports.
§Examples
use lino_rest_api::app::LinoApp;
use lino_rest_api::serve::serve;
serve(LinoApp::new(), "0.0.0.0:8000").await