Skip to main content

start

Function start 

Source
pub async fn start(config: ProxyConfig) -> Result<ProxyHandle>
Expand description

Start the proxy server.

Binds to config.bind_addr:config.bind_port (port 0 = OS-assigned), generates a session token, and begins accepting connections.

Returns a ProxyHandle with the assigned port and session token. The server runs until the handle is dropped or shutdown() is called.