Skip to main content

Module startup

Module startup 

Source
Expand description

Startup module.

In most cases, you just need to use start function:

let (server, _) = start(app_state, app_config, router).await.unwrap();
server.await

Structs§

h3_header
HTTP2-to-HTTP3 switching header.
sk_default_metrics
Default Server Kit OpenTelemetry metrics.

Functions§

get_root_router
Returns preconfigured root router to use.
get_root_router_autoinject
Returns preconfigured router with app state and OpenTelemetry metrics injected.
shutdown_signal
Signal to graceful shutdown.
start
Starts the server according to the startup variant provided.
start_clean
Starts the server according to the startup variant provided with the custom shutdown.
start_force_https_redirect
Starts up HTTPS redirect server.
start_with_service
Starts your application with provided service, if you predefined one by yourself.