pub async fn serve(
listener: TcpListener,
handler: impl Handler,
config: ServerConfig,
shutdown: impl Future<Output = ()>,
) -> Result<()>Expand description
Accept connections on listener and serve them through handler until
shutdown resolves.