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.awaitStructs§
- 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.