Network_peer.Rpc_intftype state = Peer.ttype ('query, 'response) rpc_fn =
state ->
version:int ->
'query ->
'response Async.Deferred.ttype 'r rpc_response = | Failed_to_connect of Core.Error.t |
| Connected of 'r Core.Or_error.t Envelope.Incoming.t |
module type Rpc_implementation_intf = sig ... endtype ('query, 'response) rpc_implementation =
(module Rpc_implementation_intf
with type query = 'query
and type response = 'response)module type Rpc_interface_intf = sig ... end