tokio icon indicating copy to clipboard operation
tokio copied to clipboard

Add `SimplexStream` structure

Open wutchzone opened this issue 9 months ago • 2 comments

I think that it is unfortunate that the underlying structure backing the DuplexStream is not exposed. There are cases where a single direction will suffice, for example, when I have only a single writer and single reader, thus not requiring bidirectionality.

In this patch, I renamed the Pipe to the SimplexStream for coherence with the already existing DuplexStream and made it public

wutchzone avatar May 26 '24 08:05 wutchzone