pub async fn serve(
db: SharedDb,
addr: SocketAddr,
ready: Sender<SocketAddr>,
token: Option<String>,
) -> Result<()>Expand description
Bind addr (port 0 is ephemeral) and serve.
Sends the resolved local address on ready once the listener is accepting.
Does not hold a database lock.