Skip to main content

bind

Function bind 

Source
pub async fn bind(config: Config) -> Result<(Handle, Receiver<Incoming>)>
Expand description

Bind an endpoint and start its loop.

Returns a handle for sending, and a receiver of the requests that arrive.