pub async fn write_response<W>(
writer: &mut W,
response: &IpcResponse,
) -> Result<()>where
W: AsyncWrite + Unpin,Expand description
Write a JSON-RPC response as a single newline-terminated JSON line.
The writer should be the socket’s write half (or a BufWriter around it).