Skip to main content

serve

Function serve 

Source
pub async fn serve(
    state: AppState,
    listener: TcpListener,
    shutdown: impl Future<Output = ()> + Send + 'static,
) -> Result<()>
Expand description

Serves the app until shutdown resolves.