Libp2pHelperInterface.RpcResponse
type unnamed_union_t =
Libp2p_ipc__Libp2p_ipc_capnp.MakeRPC(Capnp.RPC.None(Capnp.BytesMessage)).Builder.Libp2pHelperInterface.RpcResponse.unnamed_union_t =
| Error of string |
| Success of RpcResponseSuccess.t |
| Undefined of int |
val get : t -> unnamed_union_t
val error_set : t -> string -> unit
val success_set_reader :
t ->
RpcResponseSuccess.struct_t reader_t ->
RpcResponseSuccess.t
val success_set_builder : t -> RpcResponseSuccess.t -> RpcResponseSuccess.t
val success_init : t -> RpcResponseSuccess.t
val has_header : t -> bool
val header_get : t -> RpcMessageHeader.t
val header_set_reader :
t ->
RpcMessageHeader.struct_t reader_t ->
RpcMessageHeader.t
val header_set_builder : t -> RpcMessageHeader.t -> RpcMessageHeader.t
val header_init : t -> RpcMessageHeader.t
val init_root : ?message_size:int -> unit -> t