package rpclib

  1. Overview
  2. Docs

Parameters

Signature

type implementation = unit -> ((Rpc.call -> Rpc.response) -> (unit -> 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 Stdlib.ref
val terms : ((Rpc.call -> Rpc.response) -> (unit -> unit) Cmdliner.Term.t * Cmdliner.Term.info) list Stdlib.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 Stdlib.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.