package capnp-rpc-net

  1. Overview
  2. Docs
Cap'n Proto is a capability-based RPC system with bindings for many languages

Install

dune-project
 Dependency

Authors

Maintainers

Sources

capnp-rpc-2.1.1.tbz
sha256=6e9675034c8eac5873ed511f9b968db5223278145bb02ac4a970053a53970a48
sha512=2e2eb8389071bdad3ceef1d15200bf28987f13319f754f4d1603828d0d79202b4de90a6eb294f12ee088c7e3b73755286fbe7076b8fd3d0b29644221e0e7e080

doc/capnp-rpc-net/Capnp_rpc_net/Restorer/index.html

Module Capnp_rpc_net.RestorerSource

Sourcemodule Id : sig ... end

Resolutions

Sourcetype resolution

Internally, this is just ('a Capability.t, Capnp_rpc.Exception.t) result but the types work out better having it abstract.

grant x is Ok x.

Sourceval reject : Capnp_rpc.Exception.t -> resolution

reject x is Error x.

Sourceval unknown_service_id : resolution

unknown_service_id is a standard rejection message.

Restorers

Sourcetype t

A restorer looks up live capabilities from service IDs.

Sourceval none : t

none is a restorer that rejects everything.

single id cap is a restorer that responds to id with cap and rejects everything else.

Sourcemodule type LOADER = sig ... end
Sourcemodule Table : sig ... end
Sourceval of_table : Table.t -> t
Sourceval restore : t -> Id.t -> ('a Capnp_rpc.Std.Capability.t, Capnp_rpc.Exception.t) result

restore t id restores id using t. You don't normally need to call this directly, as the Vat will do it automatically.