Capnp_rpc_net.Restorermodule Id : sig ... endInternally, this is just ('a Capability.t, Capnp_rpc.Exception.t) result but the types work out better having it abstract.
val grant : 'a Capnp_rpc.Std.Capability.t -> resolutiongrant x is Ok x.
val reject : Capnp_rpc.Exception.t -> resolutionreject x is Error x.
val unknown_service_id : resolutionunknown_service_id is a standard rejection message.
val none : tnone is a restorer that rejects everything.
val single : Id.t -> 'a Capnp_rpc.Std.Capability.t -> tsingle id cap is a restorer that responds to id with cap and rejects everything else.
module type LOADER = sig ... endmodule Table : sig ... endval restore :
t ->
Id.t ->
('a Capnp_rpc.Std.Capability.t, Capnp_rpc.Exception.t) Stdlib.resultrestore t id restores id using t. You don't normally need to call this directly, as the Vat will do it automatically.