Module Rpc.One_way
An RPC that has no response. Error handling is trickier here than it is for RPCs with responses, as there is no reasonable place to put an error if something goes wrong. Because of this, in the event of an error such as dispatching to an unimplemented RPC, the connection will be shut down. Similarly, if the implementation raises an exception, the connection will be shut down.
val create : name:string -> version:int -> bin_msg:'msg Bin_prot.Type_class.t -> 'msg tval name : _ t -> stringval version : _ t -> intval description : _ t -> Description.tval bin_msg : 'msg t -> 'msg Bin_prot.Type_class.tval implement : 'msg t -> ('connection_state -> 'msg -> unit) -> 'connection_state Implementation.tval dispatch' : 'msg t -> Connection.t -> 'msg -> unit Rpc_result.tdispatch'exposesRpc_result.tas output. Passing it throughrpc_result_to_or_errorgives you the same result asdispatch
val rpc_result_to_or_error : 'msg t -> Connection.t -> unit Rpc_result.t -> unit Core_kernel.Or_error.tval dispatch : 'msg t -> Connection.t -> 'msg -> unit Core_kernel.Or_error.tval dispatch_exn : 'msg t -> Connection.t -> 'msg -> unit
module Expert : sig ... end