package rpc

  1. Overview
  2. Docs

Parameters

Signature

type implementation = unit -> ((Rpc.call -> Rpc.response) -> unit Cmdliner.Term.t * Cmdliner.Term.info) list
type ('a, 'b) comp = ('a, 'b) Result.result
type 'a rpcfn = Rpc.call -> Rpc.response
type 'a res = unit
val description : Idl.Interface.description option Pervasives.ref
type _ fn =
  1. | Function : 'a Idl.Param.t * 'b fn -> ('a -> 'b) fn
  2. | Returning : ('a Idl.Param.t * 'b Idl.Error.t) -> ('a, 'b) comp fn
val returning : 'a Idl.Param.t -> 'b Idl.Error.t -> ('a, 'b) comp fn
val (@->) : 'a Idl.Param.t -> 'b fn -> ('a -> 'b) fn
val pos : int Pervasives.ref
val term_of_param : 'a. 'a Idl.Param.t -> Rpc.t Cmdliner.Term.t
val declare : string -> string list -> 'a fn -> unit
OCaml

Innovation. Community. Security.