Function fidl_server::serve_async

source ·
pub async fn serve_async<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.