start_server

Function start_server 

Source
pub async fn start_server(
    server_config: ServerConfiguration,
    shutdown: Option<Receiver<bool>>,
    wait_for_shutdown_secs: Option<u64>,
) -> Result<(), Error>
Expand description

Start the server with provided ServerConfiguration.

Server listens for shutdown signals SIGTERM & SIGINT on Unix or CTRL-BREAK and CTRL-C on Windows. Also accepts a Option<tokio::sync::watch::Receiver<bool>> to shut down the client in addition to system signals.