Module schema_engine::json_rpc_stdio
source · Expand description
This module implements JSON-RPC over standard IO. It uses tokio for async IO, and jsonrpc_core for the JSON-RPC part.
Structs
- Client 🔒A handle to a connected client you can use to send requests.
- The other side of the channels. Only used as a handle to be passed into run_with_client().
Enums
- Message 🔒
Statics
Functions
- Process a request asynchronously
- Constructor a JSON-RPC client. Returns a tuple: the client you can use to send requests, and the adapter you must pass to
run_with_client()
to connect the client to the proper IO. - Start doing JSON-RPC over stdio. The future will only return once stdin is closed or another IO error happens.