pub async fn serve<S, H>(stream: S, handler: H) -> Result<(), Error>
Expand description
Serves all requests on stream
using handler
.
Stops and returns an error if a FIDL error occurs while reading a request,
or if handler
fails. The caller should log this error.