Skip to main content

run_thread_server

Function run_thread_server 

Source
pub async fn run_thread_server(
    cfg: Config,
    port_tx: Option<Sender<u16>>,
) -> Result<()>
Expand description

Run server with thread-based architecture

ยงArguments

  • cfg - Server configuration
  • port_tx - Optional channel to communicate the selected port back to caller This is used when the configured port is unavailable and a random port is selected