Skip to main content

serve_stdio

Function serve_stdio 

Source
pub fn serve_stdio(reader: impl BufRead, writer: impl Write) -> Result<()>
Expand description

Serve newline-delimited JSON-RPC requests until the parent closes stdin.

处理按行分隔的 JSON-RPC 请求,直到父进程关闭标准输入。