AsyncReadWrite

Trait AsyncReadWrite 

Source
pub trait AsyncReadWrite: AsyncRead + AsyncWrite { }
Expand description

Marker trait for types that implement AsyncRead and AsyncWrite.

When the tokio feature is enabled, this trait is implemented for types that implement tokio::io::AsyncRead, tokio::io::AsyncWrite, futures::io::AsyncRead and futures::io::AsyncWrite.

When the tokio feature is disabled, this trait is implemented for types that implement futures::io::AsyncRead and futures::io::AsyncWrite.

Implementors§