Function serve

Source
pub async fn serve<H>(addr: &SocketAddr, handle: H) -> Result<()>
where H: Handle + Send + Sync + 'static, H::Request: Debug,