Module Rpc.Implementations
type 'connection_state t= 'connection_state Async_rpc_kernel__.Implementations.t
val null : unit -> 'connection_state ta server that can handle no queries
type 'connection_state on_unknown_rpc=[|`Raise|`Continue|`Close_connectionused to be the behavior of
`Ignore|`Call of 'connection_state -> rpc_tag:string -> version:int -> [ `Close_connection | `Continue ]]
val create : implementations:'connection_state Async_rpc_kernel__Rpc.Implementation.t list -> on_unknown_rpc:'connection_state on_unknown_rpc -> ('connection_state t, [ `Duplicate_implementations of Async_rpc_kernel__Rpc.Description.t list ]) Core_kernel.Result.tcreate ~implementations ~on_unknown_rpccreates a server capable of responding to the rpcs implemented in the implementation list. Be careful about settingon_unknown_rpcto`Raisebecause other programs may mistakenly connect to this one causing it to crash.
val create_exn : implementations:'connection_state Async_rpc_kernel__Rpc.Implementation.t list -> on_unknown_rpc:[ `Raise | `Continue | `Close_connection | `Call of 'connection_state -> rpc_tag:string -> version:int -> [ `Close_connection | `Continue ] ] -> 'connection_state tval add : 'connection_state t -> 'connection_state Async_rpc_kernel__Rpc.Implementation.t -> 'connection_state t Core_kernel.Or_error.tval add_exn : 'connection_state t -> 'connection_state Async_rpc_kernel__Rpc.Implementation.t -> 'connection_state tval descriptions : _ t -> Async_rpc_kernel__Rpc.Description.t list
module Expert : sig ... endLow-level, untyped access to queries. Regular users should ignore this.