Trait duplex::FullDuplex

source ·
pub trait FullDuplex: Duplex + AsyncRead + AsyncWrite { }
Expand description

A combination of AsyncRead and AsyncWrite intended for use in interactive I/O (as opposed to normal file I/O).

Note that this only guarantees that the stream handle itself is full-duplex, and not necessarily the stream transport or the endpoint the stream is attached to. For example, TcpStream implements FullDuplex but may be connected to a server which is unable to send and receive data at the same time.

Implementors§