pub async fn serve<C>(addr: SocketAddr, state: AppState<C>) -> Result<(), Error>Expand description
Bind addr and serve until the listener fails.
pub async fn serve<C>(addr: SocketAddr, state: AppState<C>) -> Result<(), Error>Bind addr and serve until the listener fails.