pub async fn serve(
listener: TcpListener,
socket: &Path,
stop: impl Future<Output = ()> + Send + 'static,
) -> Result<()>Expand description
Serves the dashboard on listener for the daemon whose API is on socket, until stop completes. Writes the
one-time login URL to login_file(socket) and removes it when done.