Crate cubist_proxy
source ·Expand description
rpcmux: framework for muxing TCP connections
Modules
connector: an Pair <-> Pair connector
pipeline: take an Offchain and execute on it
transformer: a (stream/sink) <-> (stream/sink) adapter
Macros
Set up one or more listeners and handle all of them in a loop
Structs
A rpc call is represented by sending a Request object to a Server.
Enums
Failure of an entire pipeline.
An error message for an HTTP Request/Response pipeline.
This is either a wrapper around a Result or a fatal error
that should kill the pipeline.
An error message for a JSON-RPC processing pipeline.
This is either a wrapper around
serde_json::Value
or a fatal error that should kill the pipeline.Offchain
s represent a unique tcp connection from an offchain client.
They’re emitted by the http
functionTraits
A Sink/Stream pair in an RPC muxing pipeline
Functions
Construct a connection pool for use with http_client(), jrpc_client(), or rr_client()
Construct a JSON-RPC client from a ws:, wss:, http:, or https: URI
Listens on a tcp port and produces
Offchain
sListens on a tcp port and produces
Offchain
s.Construct an HTTP client that takes Request/Response directly from the pipeline
Type Definitions
A connection pool for making HTTP or HTTPS requests