pub async fn run(addr: SocketAddr, state: AppState) -> Result<(), ServerError>Expand description
Bind addr, build the router, and serve until a shutdown signal.
This is the main entry point for both the standalone binary and embedders that want a ready-made server loop.