package rpc

  1. Overview
  2. Docs

Parameters

Signature

type implementation = unit
exception MarshalError of string
type ('a, 'b) comp = ('a, 'b) Result.result M.lwt
type rpcfn = Rpc.call -> Rpc.response Lwt.t
type 'a res = rpcfn -> 'a
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) M.t fn
val returning : 'a Idl.Param.t -> 'b Idl.Error.t -> ('a, 'b) M.t fn
val (@->) : 'a Idl.Param.t -> 'b fn -> ('a -> 'b) fn
val declare : string -> string list -> 'a fn -> rpcfn -> 'a
OCaml

Innovation. Community. Security.