package dune-rpc

  1. Overview
  2. Docs
Communicate with dune using rpc

Install

Dune Dependency

Authors

Maintainers

Sources

dune-3.8.0.tbz
sha256=f7e2970bfab99c7766ff1a05deff5ad7f82cb2471abca6f72449572293f5f6b4
sha512=3b3a566f63842c314de2c0a660c5f7714bc90f8303c82d82e3021aee84980eff1886d15c9b9d4ea0047a411d799fb39d5f2ea70a92bdeb629e00d3d5d5f2d994

doc/dune-rpc.private/Dune_rpc_private/Client/Make/index.html

Module Client.MakeSource

Parameters

module Fiber : Fiber
module Chan : sig ... end

Signature

Sourcetype t
Sourcemodule Versioned : sig ... end
Sourceval request : ?id:Id.t -> t -> ('a, 'b) Versioned.request -> 'a -> ('b, Response.Error.t) Stdune.result Fiber.t
Sourceval notification : t -> 'a Versioned.notification -> 'a -> unit Fiber.t
Sourceval disconnected : t -> unit Fiber.t
Sourcemodule Stream : sig ... end
Sourcemodule Batch : sig ... end
Sourcemodule Handler : sig ... end
Sourcetype proc =
  1. | Request : ('a, 'b) Decl.request -> proc
    (*

    The client may send the declared request

    *)
  2. | Notification : 'a Decl.notification -> proc
    (*

    The client may send the declared notification

    *)
  3. | Poll : 'a Procedures.Poll.t -> proc
    (*

    The client may start the declared polling loop

    *)
  4. | Handle_request : ('a, 'b) Decl.request * ('a -> 'b Fiber.t) -> proc
    (*

    The client can handle the declared request

    *)
Sourceval connect_with_menu : ?handler:Handler.t -> private_menu:proc list -> Chan.t -> Initialize.Request.t -> f:(t -> 'a Fiber.t) -> 'a Fiber.t
Sourceval connect : ?handler:Handler.t -> Chan.t -> Initialize.Request.t -> f:(t -> 'a Fiber.t) -> 'a Fiber.t
OCaml

Innovation. Community. Security.