pub async fn serve<H, F>(options: &Options, factory: F) -> Result<()>Expand description
Serve the handler over the chosen transport until the client goes away (stdio) or the process is interrupted (HTTP).
ยงErrors
The listener could not bind, or the transport failed underneath the session.