package async_rpc_kernel

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t =
  1. | Rpc of {
    1. query : Bin_shape.Digest.t;
    2. response : Bin_shape.Digest.t;
    }
  2. | One_way of {
    1. msg : Bin_shape.Digest.t;
    }
  3. | Streaming_rpc of {
    1. query : Bin_shape.Digest.t;
    2. initial_response : Bin_shape.Digest.t;
    3. update_response : Bin_shape.Digest.t;
    4. error : Bin_shape.Digest.t;
    }
  4. | Unknown
val sexp_of_t : t -> Sexplib0.Sexp.t
val rpc : query:Bin_shape.Digest.t -> response:Bin_shape.Digest.t -> t
val one_way : msg:Bin_shape.Digest.t -> t
val streaming_rpc : query:Bin_shape.Digest.t -> initial_response:Bin_shape.Digest.t -> update_response:Bin_shape.Digest.t -> error:Bin_shape.Digest.t -> t
val unknown : t
val is_rpc : t -> bool
val is_one_way : t -> bool
val is_streaming_rpc : t -> bool
val is_unknown : t -> bool
val rpc_val : t -> ([ `query of Bin_shape.Digest.t ] * [ `response of Bin_shape.Digest.t ]) option
val one_way_val : t -> [ `msg of Bin_shape.Digest.t ] option
val streaming_rpc_val : t -> ([ `query of Bin_shape.Digest.t ] * [ `initial_response of Bin_shape.Digest.t ] * [ `update_response of Bin_shape.Digest.t ] * [ `error of Bin_shape.Digest.t ]) option
val unknown_val : t -> unit option
module Variants : sig ... end
val same_kind : t -> t -> bool

True if the variants are the same, e.g. both are Rpc _

module Strict_comparison : sig ... end

Total order on t. Unknown is equal only to Unknown. You might not want this kind of comparison for things other than e.g. making a Map.t

OCaml

Innovation. Community. Security.