package async_rpc_kernel
Module Async_rpc_kernel.Rpc_errorSource
type t = | Bin_io_exn of Core.Sexp.t| Connection_closed| Write_error of Core.Sexp.t| Uncaught_exn of Core.Sexp.t| Unimplemented_rpc of Async_rpc_kernel__.Protocol.Rpc_tag.t * [ `Version of int ]| Unknown_query_id of Core.Int63.t| Authorization_failure of Core.Sexp.t| Message_too_big of Async_rpc_kernel__.Transport_intf.Send_result.message_too_big| Unknown of Core.Sexp.t
include Core.Bin_prot.Binable.S with type t := t
include Bin_prot.Binable.S_only_functions with type t := t
This function only needs implementation if t exposed to be a polymorphic variant. Despite what the type reads, this does *not* produce a function after reading; instead it takes the constructor tag (int) before reading and reads the rest of the variant t afterwards.
include Sexplib0.Sexpable.S with type t := t
include Ppx_compare_lib.Comparable.S with type t := t
include Core.Comparable.S with type t := t
include Base.Comparable.S with type t := t
include Base.Comparisons.S with type t := t
compare t1 t2 returns 0 if t1 is equal to t2, a negative integer if t1 is less than t2, and a positive integer if t1 is greater than t2.
ascending is identical to compare. descending x y = ascending y x. These are intended to be mnemonic when used like List.sort ~compare:ascending and List.sort ~cmp:descending, since they cause the list to be sorted in ascending or descending order, respectively.
clamp_exn t ~min ~max returns t', the closest value to t such that between t' ~low:min ~high:max is true.
Raises if not (min <= max).
val sexp_of_t_with_reason :
t ->
get_connection_close_reason:(unit -> Core.Sexp.t) ->
Core.Sexp.tval to_error :
t ->
rpc_description:Async_rpc_kernel__.Description.t ->
connection_description:Core.Info.t ->
connection_close_started:Core.Info.t Async_kernel.Deferred.t ->
Core.Error.t