/// Write out an RPC response.
Write out an RPC response.
Write out an RPC response .
pub fn write_response(
        &self,
        id: rpc::RequestId,
        params: Option<Value>,
        error: Option<rpc::Error>,
    ) {
        self.write(rpc::Message::response(id, params, error));
    }
pub fn write_response ( & self , id : rpc :: RequestId , params : Option < Value > , error : Option < rpc :: Error > , ) { self . write ( rpc :: Message :: response ( id , params , error ) ) ; }
Write out an RPC response.
Write out an RPC response .
&self
id
rpc::RequestId
params
Option<Value>
error
Option<rpc::Error>