Skip to content

Content modification during io::copy #3725

Answered by Darksonn
alishir asked this question in Q&A
Discussion options

You must be logged in to vote

You do not necessarily need to implement it with a custom Future like io::copy does, but it is certainly an option. Some other options are:

  1. An io::copy like utility could also be written with async/await syntax using a loop or tokio::select!.
  2. You can implement an AsyncRead wrapper that performs the conversion and use it with the ordinary io::copy.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by alishir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants