Expand description
Tokio runtime configuration and common utilities for binary targets
This module provides:
- Testable runtime configuration and builder logic
- Shared utilities used across multiple binary targets to reduce duplication
- Shutdown signal handling
Structs§
- Runtime
Config - Runtime configuration
Functions§
- bind_
listener - Bind TCP listener and log startup information
- load_
and_ log_ config - Load configuration and log server information
- resolve_
listen_ address - Extract listen address from CLI args or config
- run_
accept_ loop - Run the main accept loop for client connections
- shutdown_
signal - Wait for shutdown signal (Ctrl+C or SIGTERM on Unix)
- spawn_
cache_ stats_ logger - Spawn background task to periodically log cache statistics
- spawn_
connection_ prewarming - Spawn background task to prewarm connection pools
- spawn_
shutdown_ handler - Spawn graceful shutdown handler
- spawn_
stats_ flusher - Spawn background task to periodically flush connection stats