Function gotham::tls::start_on_executor
source · [−]pub fn start_on_executor<NH, A>(
addr: A,
new_handler: NH,
tls_config: ServerConfig,
executor: TaskExecutor
) where
NH: NewHandler + 'static,
A: ToSocketAddrs + 'static,
Expand description
Starts a Gotham application with a designated backing TaskExecutor
.
This function can be used to spawn the server on an existing Runtime
.