Skip to main content

run

Function run 

Source
pub fn run<F, Fut>(run_async: F) -> Result<(), ProxyError>
where F: FnOnce() -> Fut, Fut: Future<Output = Result<(), ProxyError>>,
Expand description

Build a multi-threaded Tokio runtime and drive run_async to completion.

Built-in proxies share this runtime-builder wrapper; the per-proxy run functions call it with their own async entrypoint.