Title says it all. I have a
std::io::Write and I need a
If I'd build this myself, I'd probably have a ring buffer and write on one side and read on the other side. But I don't know if there are any ring buffers with the respective read+write implementations and that also are thread safe.
My second best guess would be to send over buffers using a channel (I know there are some sync-async-compat libraries for it) and somehow wrap the traits on the ends.
But let me know what you think.