Trait pueue_lib::network::socket::Stream

source ·
pub trait Stream: AsyncRead + AsyncWrite + Unpin + Send { }
Expand description

A new trait, which can be used to represent Unix- and Tls encrypted TcpStreams.
This is necessary to write generic functions where both types can be used.

Implementations on Foreign Types§

source§

impl Stream for TlsStream<TcpStream>

source§

impl Stream for TlsStream<TcpStream>

source§

impl Stream for UnixStream

Implementors§