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§
- Duplex
Client - A client side handle to
DuplexService, used for RPC calls to the remote server. - Duplex
Service - A
tower::Servicethat 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§
- Duplex
Error - Duplex
Value - A wrapper for an RPC request or response. The wrapper includes a tag to demultiplex responses and match them to the correct requests.