Module duplex

Module duplex 

Source
Expand description

Duplex channel API: a single connection carries messages in both directions.

Structs§

DuplexRx
Receiver half of a duplex channel.
DuplexServer
Public duplex server that yields (DuplexRx<In>, DuplexTx<Out>) pairs.
DuplexTx
Sender half of a duplex channel.

Functions§

dial
Connect to a duplex server, returning tx and rx handles.
serve
Start a duplex server on the given address.