package async_rpc_kernel

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Rpc_shapes.Just_digestsSource

Sourcetype 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
Sourceval sexp_of_t : t -> Sexplib0.Sexp.t
Sourceval rpc : query:Bin_shape.Digest.t -> response:Bin_shape.Digest.t -> t
Sourceval one_way : msg:Bin_shape.Digest.t -> t
Sourceval 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
Sourceval unknown : t
Sourceval is_rpc : t -> bool
Sourceval is_one_way : t -> bool
Sourceval is_streaming_rpc : t -> bool
Sourceval is_unknown : t -> bool
Sourceval rpc_val : t -> ([ `query of Bin_shape.Digest.t ] * [ `response of Bin_shape.Digest.t ]) option
Sourceval one_way_val : t -> [ `msg of Bin_shape.Digest.t ] option
Sourceval 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
Sourceval unknown_val : t -> unit option
Sourcemodule Variants : sig ... end
Sourceval same_kind : t -> t -> bool

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

Sourcemodule 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.