ReadWrite

Trait ReadWrite 

Source
pub trait ReadWrite:
    AsyncRead
    + AsyncWrite
    + Unpin
    + Send
    + Sync
    + Debug { }
Expand description

A trait combining all required characteristics for a device communication socket

This serves as a convenience trait for any type that can be used as an asynchronous read/write socket for device communication. Combines common async I/O traits with thread safety and debugging requirements.

Tokio’s TcpStream and UnixStream implement this trait.

Implementors§