Module Rpc_effect_kernel.Connector

A connector specifies a way of creating a connection. This module is exposed to cover exceptional cases; ordinarily, you should prefer to use the Self and Url constructors of Where_to_connect.t, which have a connector backing them that you don't need to explicitly provide.

module Rpc := Async_rpc_kernel.Rpc
type t
val persistent_connection : on_conn_failure:On_conn_failure.t -> (module Async_rpc_kernel.Persistent_connection.S with type conn = Rpc.Connection.t and type t = 'conn) -> 'conn -> t
val of_packed_persistent_connection : on_conn_failure:On_conn_failure.t -> Persistent_connection_packed.t -> t
val async_durable : Rpc.Connection.t Async_durable.t -> t
val for_test : 's Rpc.Implementations.t -> connection_state:(Rpc.Connection.t -> 's) -> t
val for_preview : 's Rpc.Implementations.t -> connection_state:(Rpc.Connection.t -> 's) -> t
val test_fallback : t