Tokio AsyncIO Wrapper

I have an object that uses AsyncRead and AsyncWrite (AsyncIO) traits (AsyncIO are given from Tokio TCPStream), For creating the object, requires some initial values, the values must read from the same AsyncIO.

In fact I need to read some data from AsyncIO before its real use.

For example, the object requires an IP address for creating a new connection that IP address reads from previous AsyncIO, after creating the object, It will use previous AsyncIO too.

I have not idea for implementing this, because I couldn't find any way to multiple using futures in Rust.
I thought Tokio-codec is a good choose, but unfortunately it does not support AsyncRead and AsyncWrite.

I will thankful for your suggestions :beer:.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.