package dune-rpc

  1. Overview
  2. Docs
Communicate with dune using rpc

Install

Dune Dependency

Authors

Maintainers

Sources

dune-3.16.1.tbz
sha256=b781ae20f87613c2a11bd0717809e00470c82d615e15264f9a64e033051ac3de
sha512=fddf940d5634400fa14f6728235e0dba055b90a47f868d9fee80c9523b93fb2b9920a00e70dfdc5e1dd26a21d695ce854267b6a2ec305ce89ce9447733f7242c

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.