Crate tower_duplex

Crate tower_duplex 

Source
Expand description

A tower::Service that implements a server and a client simultaneously over a bi-directional channel. As a server it is able to process RPC calls from a remote client, and as a client it is capable of making RPC calls into a remote server. It is very convinient in a system that requires asynchronous communication in both directions.

Structs§

DuplexClient
A client side handle to DuplexService, used for RPC calls to the remote server.
DuplexService
A tower::Service that implements a server and a client simultaneously over a bi-directional channel. As a server it is able to process RPC calls from a remote client, and as a client it is capable of making RPC calls into a remote server. It is very convinient in a system that requires asynchronous communication in both directions.

Enums§

DuplexError
DuplexValue
A wrapper for an RPC request or response. The wrapper includes a tag to demultiplex responses and match them to the correct requests.