Function convergence::server::run
source · [−]pub async fn run<E: Engine>(
bind: BindOptions,
engine_func: Arc<dyn Fn() -> Pin<Box<dyn Future<Output = E> + Send>> + Send + Sync>
) -> Result<()>
Expand description
Starts a server using a function responsible for producing engine instances and set of bind options.
Does not return unless the server terminates entirely.