Skip to main content

serve

Function serve 

Source
pub async fn serve(
    listener: TcpListener,
    state: AppState,
    allowed_origins: Option<Vec<String>>,
    web_dir: Option<&Path>,
) -> Result<()>
Expand description

Serves until ctrl-c. Owning this here is what keeps axum out of the CLI.